Turns a response into the request's result, or into a NetworkClientError when its status is not 2xx, decoding the body by the request's Accept header. A client that answers a request without fetch, e.g. from a local engine, runs its answer through this so callers see the same results and errors either way.

  • Type Parameters

    • T

    Parameters

    • response: Response
    • init: RequestInit
    • OptionalresponseProcessConfig: ResponseProcessConfig

    Returns Promise<T>