Class: Hpack::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/hpack/field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(header, value) ⇒ Field

Returns a new instance of Field.



6
7
8
9
# File 'lib/hpack/field.rb', line 6

def initialize header, value
  @header = header
  @value = value
end

Instance Attribute Details

#headerObject (readonly)

Returns the value of attribute header.



3
4
5
# File 'lib/hpack/field.rb', line 3

def header
  @header
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'lib/hpack/field.rb', line 4

def value
  @value
end