Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
ursm committed Jul 8, 2024
1 parent 9fa9ee0 commit 8befe89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ res = fetch('http://example.com', **{
})
```

## Connection pooling
### Connection pooling

Fetch API automatically pools and reuses connections to the same origin. Connections are closed after a certain amount of time has passed since the last use, and a new connection is used the next time. Different connections are returned for different threads (in other words, Fetch API is thread-safe).

These values (in seconds) can be configured as follows:
These values can be configured as follows (in seconds):

``` ruby
Fetch.configure do |config|
Expand Down

0 comments on commit 8befe89

Please sign in to comment.