Skip to content

Commit

Permalink
Mention advanced usage of a beforeRequest hook
Browse files Browse the repository at this point in the history
  • Loading branch information
szmarczak committed Jul 4, 2020
1 parent ac5f67d commit 779062a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,8 @@ Called with [normalized](source/core/index.ts) [request options](#options). Got

See the [AWS section](#aws) for an example.

**Tip:** You can override the `request` function by returning a [`ClientRequest`-like](https://nodejs.org/api/http.html#http_class_http_clientrequest) instance or a [`IncomingMessage`-like](https://nodejs.org/api/http.html#http_class_http_incomingmessage) instance. This is very useful when creating a custom cache mechanism.

###### hooks.beforeRedirect

Type: `Function[]`\
Expand Down

0 comments on commit 779062a

Please sign in to comment.