Class: SPDY::Protocol::Control::Goaway

Inherits:
BinData::Record
  • Object
show all
Defined in:
lib/spdy/protocol.rb

Instance Method Summary collapse

Instance Method Details

#create(opts = {}) ⇒ Object



192
193
194
195
# File 'lib/spdy/protocol.rb', line 192

def create(opts = {})
  self.stream_id = opts.fetch(:stream_id, 1)
  self
end

#parse(chunk) ⇒ Object



187
188
189
190
# File 'lib/spdy/protocol.rb', line 187

def parse(chunk)
  self.read(chunk)
  self
end