class HTTP2::Streams

Defined in:

streams.cr

Instance Method Summary

Instance Method Detail

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

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


[View source]
def 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.


[View source]