Method: Protocol::HTTP2::Stream#receive_push_promise
- Defined in:
- lib/protocol/http2/stream.rb
#receive_push_promise(frame) ⇒ Object
494 495 496 497 498 499 500 501 502 503 |
# File 'lib/protocol/http2/stream.rb', line 494 def receive_push_promise(frame) promised_stream_id, data = frame.unpack headers = @connection.decode_headers(data) stream = self.accept_push_promise_stream(promised_stream_id, headers) stream.parent = self stream.reserved_remote! return stream, headers end |