Skip to content

Commit

Permalink
Fix fetch duplex docs (#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan-Arrowood authored Jul 26, 2024
1 parent 3dceee2 commit 0f45d42
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 @@ -259,9 +259,9 @@ await fetch('http://example.com', { method: 'POST', body })

#### `request.duplex`

- half
- `'half'`

In this implementation of fetch, `request.duplex` must be set if `request.body` is `ReadableStream` or `Async Iterables`, however, fetch requests are currently always full duplex. For more detail refer to the [Fetch Standard.](https://fetch.spec.whatwg.org/#dom-requestinit-duplex).
In this implementation of fetch, `request.duplex` must be set if `request.body` is `ReadableStream` or `Async Iterables`, however, even though the value must be set to `'half'`, it is actually a _full_ duplex. For more detail refer to the [Fetch Standard.](https://fetch.spec.whatwg.org/#dom-requestinit-duplex).

#### `response.body`

Expand Down

0 comments on commit 0f45d42

Please sign in to comment.