-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http: allow sending 1xx responses #42597
Closed
Closed
Commits on May 17, 2022
-
net/http: allow sending 1xx responses
Currently, it's not possible to send informational responses such as 103 Early Hints or 102 Processing. This patch allows calling WriteHeader() multiple times in order to send informational responses before the final one. If the status code is in the 1xx range, the current content of the header map is also sent. Its content is not removed after the call to WriteHeader() because the headers must also be included in the final response. The Chrome and Fastly teams are starting a large-scale experiment to measure the real-life impact of the 103 status code. Using Early Hints is proposed as a (partial) alternative to Server Push, which are going to be removed from Chrome: https://groups.google.com/a/chromium.org/g/blink-dev/c/K3rYLvmQUBY/m/21anpFhxAQAJ Being able to send this status code from servers implemented using Go would help to see if implementing it in browsers is worth it. Fixes golang#26089. Fixes golang#36734. Updates golang#26088.
Configuration menu - View commit details
-
Copy full SHA for bcf90e8 - Browse repository at this point
Copy the full SHA bcf90e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4645a07 - Browse repository at this point
Copy the full SHA 4645a07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b9eef0 - Browse repository at this point
Copy the full SHA 7b9eef0View commit details -
Configuration menu - View commit details
-
Copy full SHA for cc7d8ee - Browse repository at this point
Copy the full SHA cc7d8eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09afbf7 - Browse repository at this point
Copy the full SHA 09afbf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 265612d - Browse repository at this point
Copy the full SHA 265612dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a8e8dd8 - Browse repository at this point
Copy the full SHA a8e8dd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 68be5c0 - Browse repository at this point
Copy the full SHA 68be5c0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65898a9 - Browse repository at this point
Copy the full SHA 65898a9View commit details -
Revert "net/http: reverseproxy: forward 103 responses"
This reverts commit 293481a.
Configuration menu - View commit details
-
Copy full SHA for 4c4cc34 - Browse repository at this point
Copy the full SHA 4c4cc34View commit details -
Configuration menu - View commit details
-
Copy full SHA for eeedec4 - Browse repository at this point
Copy the full SHA eeedec4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 771b6af - Browse repository at this point
Copy the full SHA 771b6afView commit details -
Configuration menu - View commit details
-
Copy full SHA for 33194e2 - Browse repository at this point
Copy the full SHA 33194e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26901a4 - Browse repository at this point
Copy the full SHA 26901a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 40bf7ac - Browse repository at this point
Copy the full SHA 40bf7acView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6cf95e3 - Browse repository at this point
Copy the full SHA 6cf95e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 75417b5 - Browse repository at this point
Copy the full SHA 75417b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e76d05 - Browse repository at this point
Copy the full SHA 3e76d05View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d84678 - Browse repository at this point
Copy the full SHA 8d84678View commit details -
Configuration menu - View commit details
-
Copy full SHA for 06d749d - Browse repository at this point
Copy the full SHA 06d749dView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.