Skip to content

Commit

Permalink
doc: add redirect example, update URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanent committed Apr 11, 2024
1 parent 1e4c884 commit c85c201
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ In this example, the [stream](https://nodejs.org/api/stream.html) is piped to a
c('https://example.com').stream().send().then((stream) => stream.pipe(fs.createWriteStream(path.join(__dirname, 'logo.png'))))
```

### Follow redirects

```js
c('https://example.com/').followRedirects(5).send()
```

### Switch paths on the fly

```js
Expand Down

0 comments on commit c85c201

Please sign in to comment.