- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 26 May 2023 01:47:47 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 26 May 2023 08:47:53 UTC
@annevk commented on this pull request. > @@ -7178,6 +7174,22 @@ returns failure or a <a for=/>MIME type</a>. <hr> +<div algorithm> +<p>To <dfn id=concept-body-get-mime-type for=Body>get the MIME type</dfn>, given a {{Request}} +or {{Response}} object, <var>requestOrResponse</var>, run these steps: + +<ol> + <li><p>Let <var>headers</var> be null + <li><p>If <var>requestOrResponse</var> is a {{Request}} object, then set <var>headers</var> to + <var>requestOrResponse</var>'s <a for=Request>request</a>'s {{Request/headers}}. + <li><p>Otherwise, set <var>headers</var> to <var>requestOrResponse</var>'s <a for=Response> + response</a>'s {{Response/headers}}. + <li><p>Let <var>mimeTypeInHeaders</var> be the result of <a for="header list">extracting a + MIME type</a> from <var>headers</var>. No, the whole element needs to go on on the new line (otherwise you introduce whitespace between the start tag and its contents). -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/pull/1657#discussion_r1206444208 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/fetch/pull/1657/review/1445646696@github.com>
Received on Friday, 26 May 2023 08:47:53 UTC