Method: Protocol::HTTP2::Connection#receive_priority
- Defined in:
- lib/protocol/http2/connection.rb
#receive_priority(frame) ⇒ Object
On the client and server side, sets the priority for an incoming stream.
397 398 399 400 401 402 403 404 405 |
# File 'lib/protocol/http2/connection.rb', line 397 def receive_priority(frame) if stream = @streams[frame.stream_id] stream.receive_priority(frame) else # Stream doesn't exist yet. stream = accept_stream(frame.stream_id) stream.receive_priority(frame) end end |