[whatwg/fetch] Make the fetchLater stream example reach the length check (PR #1978)

Pass a POST method and the required half duplex mode so the Request constructor accepts the stream and fetchLater then rejects its unknown body length.


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1978.html" title="Last updated on Nov 20, 2026, 4:41 AM UTC (908c994)">Preview</a> | <a href="https://whatpr.org/fetch/1978/59afe34...908c994.html" title="Last updated on Nov 20, 2026, 4:41 AM UTC (908c994)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1978

-- Commit Summary --

  * Make the fetchLater stream example reach the length check

-- File Changes --

    M fetch.bs (4)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1978.patch
https://github.com/whatwg/fetch/pull/1978.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1978
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1978@github.com>

Received on Friday, 20 November 2026 04:41:36 UTC