Skip to content

Commit

Permalink
fastify#92 docs: document the onError option
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbain committed Aug 8, 2023
1 parent 4e3ff0f commit d44dbf8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ Called when an http response is received from the source.
The default behavior is `pump(stream, res)`, which will be disabled if the
option is specified.

##### onError(err, req, res)
Called when an error is thrown from the source. If this option is specified, the default error handling will not be applied.

##### rewriteRequestHeaders(req, headers)
Called to rewrite the headers of the request, before them being sent to the downstream server.
It must return the new headers object.
Expand Down

0 comments on commit d44dbf8

Please sign in to comment.