summaryrefslogtreecommitdiffstats
path: root/lib/plum/hpack/constants.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/plum/hpack/constants.rb')
-rw-r--r--lib/plum/hpack/constants.rb92
1 files changed, 46 insertions, 46 deletions
diff --git a/lib/plum/hpack/constants.rb b/lib/plum/hpack/constants.rb
index 1cd3b2b..0fe4caa 100644
--- a/lib/plum/hpack/constants.rb
+++ b/lib/plum/hpack/constants.rb
@@ -3,7 +3,7 @@ module Plum
# RFC7541 Appendix A
# index is starting from 0
STATIC_TABLE = [
- [":authority"],
+ [":authority", ""],
[":method", "GET"],
[":method", "POST"],
[":path", "/"],
@@ -19,51 +19,51 @@ module Plum
[":status", "500"],
["accept-charset"],
["accept-encoding", "gzip, deflate"],
- ["accept-language"],
- ["accept-ranges"],
- ["accept"],
- ["access-control-allow-origin"],
- ["age"],
- ["allow"],
- ["authorization"],
- ["cache-control"],
- ["content-disposition"],
- ["content-encoding"],
- ["content-language"],
- ["content-length"],
- ["content-location"],
- ["content-range"],
- ["content-type"],
- ["cookie"],
- ["date"],
- ["etag"],
- ["expect"],
- ["expires"],
- ["from"],
- ["host"],
- ["if-match"],
- ["if-modified-since"],
- ["if-none-match"],
- ["if-range"],
- ["if-unmodified-since"],
- ["last-modified"],
- ["link"],
- ["location"],
- ["max-forwards"],
- ["proxy-authenticate"],
- ["proxy-authorization"],
- ["range"],
- ["referer"],
- ["refresh"],
- ["retry-after"],
- ["server"],
- ["set-cookie"],
- ["strict-transport-security"],
- ["transfer-encoding"],
- ["user-agent"],
- ["vary"],
- ["via"],
- ["www-authenticate"],
+ ["accept-language", ""],
+ ["accept-ranges", ""],
+ ["accept", ""],
+ ["access-control-allow-origin", ""],
+ ["age", ""],
+ ["allow", ""],
+ ["authorization", ""],
+ ["cache-control", ""],
+ ["content-disposition", ""],
+ ["content-encoding", ""],
+ ["content-language", ""],
+ ["content-length", ""],
+ ["content-location", ""],
+ ["content-range", ""],
+ ["content-type", ""],
+ ["cookie", ""],
+ ["date", ""],
+ ["etag", ""],
+ ["expect", ""],
+ ["expires", ""],
+ ["from", ""],
+ ["host", ""],
+ ["if-match", ""],
+ ["if-modified-since", ""],
+ ["if-none-match", ""],
+ ["if-range", ""],
+ ["if-unmodified-since", ""],
+ ["last-modified", ""],
+ ["link", ""],
+ ["location", ""],
+ ["max-forwards", ""],
+ ["proxy-authenticate", ""],
+ ["proxy-authorization", ""],
+ ["range", ""],
+ ["referer", ""],
+ ["refresh", ""],
+ ["retry-after", ""],
+ ["server", ""],
+ ["set-cookie", ""],
+ ["strict-transport-security", ""],
+ ["transfer-encoding", ""],
+ ["user-agent", ""],
+ ["vary", ""],
+ ["via", ""],
+ ["www-authenticate", ""],
].freeze
HUFFMAN_TABLE = [