Skip to main content

MiddlewareMetadata

Index

Properties

Properties

fetch

fetch: (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

Type declaration

    • (input: RequestInfo | URL, init?: RequestInit): Promise<Response>
    • The specific function that was returned by buildFetch. This can be useful to allow middlewares to handle state that is specifically related to one buildFetch result over another one.

      Note: The middleware must not actually invoke this fetch method (doing so will throw due to infinite recursion).


      Parameters

      • input: RequestInfo | URL
      • optionalinit: RequestInit

      Returns Promise<Response>