Re: [whatwg/fetch] Add HTTP fetch step on 421. (#1141)

@annevk commented on this pull request.



> +    <ol>
+     <li><p>Let <var>aborted</var> be the termination's aborted flag.
+
+     <li><p>If <var>aborted</var> is set, then return an <a>aborted network error</a>.
+
+     <li><p>Return a <a>network error</a>.
+    </ol>
+
+   <li>
+    <p>If <var>actualResponse</var>'s <a for=response>status</a> is 421,
+     <var>request</var>'s <a for=request>body</a> is non-null, and
+     <var>request</var>'s <a for=request>body</a>'s <a for=body>source</a> is
+      null, then return a <a>network error</a>.
+
+   <li><p>Set <var>response</var> to the result of performing an <a>HTTP-network-or-cache fetch</a>
+   using <var>request</var>.

I think we should address this in the way I suggested. Whereby obtain a connection has a new argument that forces the lookup to be bypassed so a new connection is returned. Trying to clarify this in the caller's prose doesn't make it clear that this is a feature an "obtain a connection" implementation needs to provide.

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

Received on Monday, 8 February 2021 09:40:46 UTC