http/docs/api/hooks.md

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.