Class: Arf::Wire::ResetStreamFrame

Inherits:
BaseFrame
  • Object
show all
Defined in:
lib/arf/wire/frames/reset_stream_frame.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseFrame

#decode_flags, #decode_uint16, #decode_uint32, define_flag, #encode_flags, #encode_uint16, #encode_uint32, flags, #flags, frame_by_kind, frame_kind, #frame_kind, #initialize, #inspect_flags, register_frame, #to_frame, #value_size, value_size, wants_stream_id!, #wants_stream_id?, wants_stream_id?

Constructor Details

This class inherits a constructor from Arf::Wire::BaseFrame

Instance Attribute Details

#error_codeObject

Returns the value of attribute error_code.



9
10
11
# File 'lib/arf/wire/frames/reset_stream_frame.rb', line 9

def error_code
  @error_code
end

Instance Method Details

#encode_payloadObject



16
# File 'lib/arf/wire/frames/reset_stream_frame.rb', line 16

def encode_payload = encode_uint32(error_code)

#from_frame(fr) ⇒ Object



11
12
13
14
# File 'lib/arf/wire/frames/reset_stream_frame.rb', line 11

def from_frame(fr)
  @stream_id = fr.stream_id
  @error_code = decode_uint32(fr.payload)
end