Method: Protocol::HTTP2::Framer#read_header
- Defined in:
- lib/protocol/http2/framer.rb
#read_header ⇒ Object
Read a frame header from the stream.
123 124 125 126 127 128 129 130 131 |
# File 'lib/protocol/http2/framer.rb', line 123 def read_header if buffer = @stream.read(9) if buffer.bytesize == 9 return Frame.parse_header(buffer) end end raise EOFError, "Could not read frame header!" end |