Re: [whatwg/fetch] Editorial: clarify how to get MIME type for request and response (PR #1657)

@CYBAI commented on this pull request.



> + <li><p>Let <var>bodyWithType</var> be the result of <a for=BodyInit>extracting</a> <a>this</a>'s
+ <a for=Body>body</a>.
+ <li><p>Return <var>bodyWithType</var>'s <a for="body with type">type</a>.

Indeed! You mean, while given a Request or Response object, it must already run through the "extract" algorithm (e.g. Step 37-1 in https://fetch.spec.whatwg.org/#dom-request) and set body's type back to its headers so we don't need to "extract" again. Is my understanding correct?

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

Message ID: <whatwg/fetch/pull/1657/review/1441778795@github.com>

Received on Wednesday, 24 May 2023 12:55:06 UTC