Hierarchy

  • FetchTransformOptions

Properties

Properties

request: ((...args) => FetchParameters | Promise<FetchParameters>)

Type declaration

    • (...args): FetchParameters | Promise<FetchParameters>
    • Transforms the request options before a request is made. This executes after all of the default parameters have been configured, and is stateless. It is safe to return new request options objects.

      Parameters

      • Rest ...args: FetchParameters

        The request options.

      Returns FetchParameters | Promise<FetchParameters>

      The transformed request options.

response: ((response) => Response | Promise<Response>)

Type declaration

    • (response): Response | Promise<Response>
    • Transforms the response after a request completes. This executes immediately after the request completes, and is stateless. It is safe to return a new response object.

      Parameters

      • response: Response

        The response object.

      Returns Response | Promise<Response>

      The transformed response object.