Skip to content

Commit c04e47f

Browse files
vkuzmin-uberbradfitz
authored andcommitted
net/http: add StatusEarlyHints (103)
HTTP status code 103 (Early Hints) from RFC 8297. Fixes #29655 Change-Id: Ia1edbb561ee46f42d7fa1aae3ab9586497fcdb6c Reviewed-on: https://go-review.googlesource.com/c/157339 Run-TryBot: Agniva De Sarker <agniva.quicksilver@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
1 parent e881604 commit c04e47f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/net/http/status.go

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const (
1010
StatusContinue = 100 // RFC 7231, 6.2.1
1111
StatusSwitchingProtocols = 101 // RFC 7231, 6.2.2
1212
StatusProcessing = 102 // RFC 2518, 10.1
13+
StatusEarlyHints = 103 // RFC 8297
1314

1415
StatusOK = 200 // RFC 7231, 6.3.1
1516
StatusCreated = 201 // RFC 7231, 6.3.2
@@ -79,6 +80,7 @@ var statusText = map[int]string{
7980
StatusContinue: "Continue",
8081
StatusSwitchingProtocols: "Switching Protocols",
8182
StatusProcessing: "Processing",
83+
StatusEarlyHints: "Early Hints",
8284

8385
StatusOK: "OK",
8486
StatusCreated: "Created",

0 commit comments

Comments
 (0)