Method: HTTP::Protocol::HTTP2::Connection#encode_headers

Defined in:
lib/http/protocol/http2/connection.rb

#encode_headers(headers, buffer = String.new.b) ⇒ Object



90
91
92
93
94
# File 'lib/http/protocol/http2/connection.rb', line 90

def encode_headers(headers, buffer = String.new.b)
  HPACK::Compressor.new(buffer, @encoder).encode(headers)
  
  return buffer
end