Method: HTTP2Next::Header::EncodingContext#initialize
- Defined in:
- lib/http/2/next/compressor.rb
#initialize(**options) ⇒ EncodingContext
Initializes compression context with appropriate client/server defaults and maximum size of the dynamic table.
99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/http/2/next/compressor.rb', line 99 def initialize(**) = { huffman: :shorter, index: :all, table_size: 4096 } @table = [] @options = .merge() @limit = @options[:table_size] @_table_updated = false end |