Method: Protocol::HTTP2::Frame#initialize
- Defined in:
- lib/protocol/http2/frame.rb
#initialize(stream_id = 0, flags = 0, type = self.class::TYPE, length = nil, payload = nil) ⇒ Frame
Returns a new instance of Frame.
53 54 55 56 57 58 59 |
# File 'lib/protocol/http2/frame.rb', line 53 def initialize(stream_id = 0, flags = 0, type = self.class::TYPE, length = nil, payload = nil) @length = length @type = type @flags = flags @stream_id = stream_id @payload = payload end |