News for hackers. Stuff that matters.
Re:HTTP 103 – An HTTP Status Code for Indicating Hints by tyingq on Monday October 30, 2017 @08:46PM (#15590309)
Shouldn't it have a complimentary "denied" code? Or is 403 "Forbidden" the complement? Or maybe 401 "Unauthorized"?

I guess it is related to preloading? Not quite getting the purpose.

Edit: ahh, the complete story is here: https://tools.ietf.org/html/draft-ietf-httpbis-early-hints-0... (fixed). Note that someone fixed the capitalized "A" in "approved" in the title. It confused my initial reading of the article.

Re:HTTP 103 – An HTTP Status Code for Indicating Hints by alexbecker on Monday October 30, 2017 @09:00PM (#15590370)
As I understand it, the status code would improve performance in situations like the following:

1. Client requests X.html (which requires Y.css and Z.js) from Proxy.

2. Proxy forwards client's X.html request to Server.

3. [Server takes a long time to respond]

4. Server sends a 200 response to Proxy with X.html.

5. Proxy, per some configuration, adds Preload headers to this response indicating that Y.css and Z.js should be immediately loaded once this response is received, and sends it to Client.

6. Client requests Y.css and Z.js.

With the 103 status code, this would look like:

1. Client requests X.html (which requires Y.css and Z.js) from Proxy.

2. Proxy forwards client's X.html request to server and, per some configuration, immediately sends a 103 response with Preload headers for Y.css and Z.js to Client.

3. [Server takes a long time to respond]

4. In parallel, Client requests Y.css and Z.js.

5. Server sends a 200 response to Proxy with X.html.

6. Proxy sends this response to Client.

Note that since Y.css and Z.js are requested sooner, the final load time should be less.

Re:HTTP 103 – An HTTP Status Code for Indicating Hints by stock_toaster on Monday October 30, 2017 @09:46PM (#15590566)
The proxy could also read preload headers from the Server, and start preemptively fetching Y.css and Z.js from the Server at the same time (step 2) it forwards the preload headers back to Client.
Re:HTTP 103 – An HTTP Status Code for Indicating Hints by matthewbauer on Monday October 30, 2017 @08:57PM (#15590356)
Yeah, the actual name is "103 Early Hints" not "103 Approved".
Re:HTTP 103 – An HTTP Status Code for Indicating Hints by helb on Monday October 30, 2017 @09:04PM (#15590390)
I guess the title was meant as "… Approved as new status code", not "HTTP 103 Approved …". A bit unfortunate wording (and that capital A).
Re:HTTP 103 – An HTTP Status Code for Indicating Hints by itaris on Monday October 30, 2017 @09:12PM (#15590424)
Someone only read the headline.
Re:HTTP 103 – An HTTP Status Code for Indicating Hints by tyingq on Monday October 30, 2017 @09:37PM (#15590531)
I read the headline and it colored my reading of the linked article. Bad headlines set up bad context. Someone also lowercased the "a" in approved in the headline since I saw it.

Someone else suggested https://tools.ietf.org/html/draft-ietf-httpbis-early-hints-0..., which has more context without a need for a second click.

Re:HTTP 103 – An HTTP Status Code for Indicating Hints by chrismorgan on Monday October 30, 2017 @09:20PM (#15590451)
You linked to revision 00; revision 05, https://tools.ietf.org/html/draft-ietf-httpbis-early-hints-0..., is the version of the spec that has just been approved.