class

HTTP2::Streams

Inherits Reference < Object

Instance methods

create(state = Stream::State::IDLE) : Stream

Creates an outgoing stream. For example to handle a client request or a server push.

Source
find(id : Int32, consume : Bool = true) : Stream

Finds an existing stream, silently creating it if it doesn't exist yet.

Takes care to increment highest_remote_id counter for an incoming stream, unless consume is set to false, for example a PRIORITY frame forward declares a stream priority/dependency but doesn't consume the stream identifiers, so they are still valid.

Source