Method: Protocol::HTTP::Headers#initialize

Defined in:
lib/protocol/http/headers.rb

#initialize(fields = [], indexed = nil) ⇒ Headers

Returns a new instance of Headers.



66
67
68
69
70
71
72
# File 'lib/protocol/http/headers.rb', line 66

def initialize(fields = [], indexed = nil)
  @fields = fields
  @indexed = indexed
  
  # Marks where trailer start in the @fields array.
  @tail = nil
end