Registers a hook that is called when a request cannot be made due to a network error.
Registers a hook that is called when a response has been received from the server.
Removes a hook that was previously registered with addHook
.
Removes a hook that was previously registered with addHook
.
Removes a hook that was previously registered with addHook
.
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.