class Protocol::HPACK::Context

def initialize(table = nil, huffman: :shorter, index: :all, table_size: 4096)

Options Hash: (**table_size)
  • The (Integer) -- current maximum dynamic table size.
  • One (Symbol) -- of `:all`, `:static`, `:never`. Controls use of static/dynamic tables.
  • One (Symbol) -- of `:always`, `:never`, `:shorter`. Controls use of compression.

Parameters:
  • table (Array) -- Table of header key-value pairs.
def initialize(table = nil, huffman: :shorter, index: :all, table_size: 4096)
	@huffman = huffman
	@index = index
	
	@table_size = table_size
	
	@table = (table&.dup) || []
end