Class: SPDY::Protocol::Control::RstStream
- Inherits:
-
BinData::Record
- Object
- BinData::Record
- SPDY::Protocol::Control::RstStream
- Defined in:
- lib/spdy/protocol.rb
Instance Method Summary collapse
Instance Method Details
#create(opts = {}) ⇒ Object
117 118 119 120 121 |
# File 'lib/spdy/protocol.rb', line 117 def create(opts = {}) self.stream_id = opts.fetch(:stream_id, 1) self.status_code = opts.fetch(:status_code, 5) self end |
#parse(chunk) ⇒ Object
112 113 114 115 |
# File 'lib/spdy/protocol.rb', line 112 def parse(chunk) self.read(chunk) self end |