mirror of https://github.com/sundowndev/http.git
454 B
454 B
Hooks
The arguments
listed below are those your hook will receive when it's called.
onRequest
- arguments:
(config)
See here for usage.
onResponse
- arguments:
(response)
See here for usage.
onError
- arguments:
(error)
If the error originated from a request, the property err.response
might be available.
See here for usage.