Constructors

Methods

  • Registers a hook that is called before a request is made. The hook function can mutate the request or return a new request. This may be useful to add additional information to request such as request IDs and tracing headers.

    Parameters

    Returns this

  • Registers a hook that is called when a request cannot be made due to a network error.

    Parameters

    Returns this

  • Registers a hook that is called when a response has been received from the server.

    Parameters

    Returns this