HT2::Connection
Inherits Reference < Object
Constructors
new(socket : IO, is_server : Bool = true, client_ip : String | Nil = nil)
SourceInstance methods
adaptive_buffer_manager
Sourceapplied_settings
Sourceapply_remote_settings(settings : SettingsFrame::Settings) : Nil
Sourceapply_remote_settings_frame(frame : SettingsFrame) : Nil
Sourcebackpressure_manager
Sourcebuffer_pool
Sourceclose
Sourceclosed?
Sourceconsume_window(size : Int32) : Nil
Sourcecreate_stream(stream_id : UInt32) : Stream
Create a stream with a specific ID (used for h2c upgrade)
create_stream
Sourceframe_cache
Sourcegoaway_received?
Sourcegoaway_sent?
Sourcehpack_decoder
Sourcehpack_encoder
Sourceis_server?
Sourcelast_stream_id
Sourcelocal_settings
Sourcemark_stream_closed(stream_id : UInt32) : Nil
Sourcemetrics
Sourceon_data
Sourceon_data=(on_data : DataCallback | Nil)
Sourceon_headers
Sourceon_headers=(on_headers : HeaderCallback | Nil)
Sourceperformance_metrics
Sourceping(data : Bytes | Nil = nil) : Channel(Nil)
Sourceremote_settings
Sourcesend_data_frames(stream_id : UInt32, data_chunks : Array(Bytes), end_stream : Bool = false) : Nil
Send multiple DATA frames from the same stream efficiently
send_frame(frame : Frame) : Nil
Sourcesend_frames_vectored(frames : Array(Frame)) : Nil
Send multiple frames using direct vectored I/O without buffering This is most efficient when frames are already serialized or when sending many small frames that would benefit from atomic writes
send_goaway(error_code : ErrorCode, debug_data : String = "") : Nil
Sourcesend_prioritized_frames(frames : Array(MultiFrameWriter::PrioritizedFrame)) : Nil
Send prioritized frames in priority order
socket
Sourcestart
Sourcestream_lifecycle_tracer
Sourcestreams
Sourceupdate_settings(settings : SettingsFrame::Settings) : Channel(Nil)
Sourcewindow_size
Source