Skip to content

Commit

Permalink
http: Add priority to common http headers
Browse files Browse the repository at this point in the history
The standard `Priority` header is defined in RFC 9218.

This is added as part of the precusor to quic/http3 work.

Signed-off-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
jasnell committed Oct 17, 2022
1 parent da8f618 commit 424c4fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/node_http_common.h
Expand Up @@ -78,7 +78,8 @@ class Environment;
V(ORIGIN, "origin") \
V(PURPOSE, "purpose") \
V(TIMING_ALLOW_ORIGIN, "timing-allow-origin") \
V(X_FORWARDED_FOR, "x-forwarded-for")
V(X_FORWARDED_FOR, "x-forwarded-for") \
V(PRIORITY, "priority")

#define HTTP_ADDITIONAL_HEADERS(V) \
V(ACCEPT_CHARSET, "accept-charset") \
Expand Down
1 change: 1 addition & 0 deletions test/parallel/test-http2-binding.js
Expand Up @@ -180,6 +180,7 @@ const expectedHeaderNames = {
HTTP2_HEADER_PURPOSE: 'purpose',
HTTP2_HEADER_TIMING_ALLOW_ORIGIN: 'timing-allow-origin',
HTTP2_HEADER_X_FORWARDED_FOR: 'x-forwarded-for',
HTTP2_PRIORITY: 'priority',
};

const expectedNGConstants = {
Expand Down

0 comments on commit 424c4fe

Please sign in to comment.