Skip to content

Commit 1b090c9

Browse files
yosuke-furukawacjihrig
authored andcommitted
http, http2: add 103 Early Hints status code
PR-URL: #16644 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 326a048 commit 1b090c9

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/_http_server.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const STATUS_CODES = {
4444
100: 'Continue',
4545
101: 'Switching Protocols',
4646
102: 'Processing', // RFC 2518, obsoleted by RFC 4918
47+
103: 'Early Hints',
4748
200: 'OK',
4849
201: 'Created',
4950
202: 'Accepted',

src/node_http2.h

+1
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ HTTP_KNOWN_HEADER_MAX
158158
V(CONTINUE, 100) \
159159
V(SWITCHING_PROTOCOLS, 101) \
160160
V(PROCESSING, 102) \
161+
V(EARLY_HINTS, 103) \
161162
V(OK, 200) \
162163
V(CREATED, 201) \
163164
V(ACCEPTED, 202) \

test/parallel/test-http2-binding.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const expectedStatusCodes = {
3131
HTTP_STATUS_CONTINUE: 100,
3232
HTTP_STATUS_SWITCHING_PROTOCOLS: 101,
3333
HTTP_STATUS_PROCESSING: 102,
34+
HTTP_STATUS_EARLY_HINTS: 103,
3435
HTTP_STATUS_OK: 200,
3536
HTTP_STATUS_CREATED: 201,
3637
HTTP_STATUS_ACCEPTED: 202,

0 commit comments

Comments
 (0)