From 0f45d422bfc29415b913dcc1a9b94102063ca88b Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Fri, 26 Jul 2024 09:04:36 -0600 Subject: [PATCH] Fix fetch `duplex` docs (#3422) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fea71cb4be6..9a2bc6c7751 100644 --- a/README.md +++ b/README.md @@ -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`