Skip to content


Browse files Browse the repository at this point in the history
Clarify retry behavior (#944)
  • Loading branch information
szmarczak authored and sindresorhus committed Nov 25, 2019
1 parent 6cc3d9f commit d9a3273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions
Expand Up @@ -106,6 +106,8 @@ const pipeline = promisify(stream.pipeline);

It's a `GET` request by default, but can be changed by using different methods or via `options.method`.

**By default, Got will retry on failure. To disable this option, set [`retry`](#retry) to `0`.**

#### got([url], [options])

Returns a Promise for a [`response` object](#response) or a [stream](#streams-1) if `options.isStream` is set to true.
Expand Down

0 comments on commit d9a3273

Please sign in to comment.