Skip to content

Commit 7c43099

Browse files
yosuke-furukawarvagg
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 9a9ea0d commit 7c43099

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
@@ -50,6 +50,7 @@ const STATUS_CODES = {
5050
100: 'Continue',
5151
101: 'Switching Protocols',
5252
102: 'Processing', // RFC 2518, obsoleted by RFC 4918
53+
103: 'Early Hints',
5354
200: 'OK',
5455
201: 'Created',
5556
202: 'Accepted',

src/node_http2.h

+1
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ HTTP_KNOWN_HEADER_MAX
292292
V(CONTINUE, 100) \
293293
V(SWITCHING_PROTOCOLS, 101) \
294294
V(PROCESSING, 102) \
295+
V(EARLY_HINTS, 103) \
295296
V(OK, 200) \
296297
V(CREATED, 201) \
297298
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)