HT2::Stream
Inherits Reference < Object
Constructors
new(connection : Connection, id : UInt32, initial_state : StreamState = StreamState::IDLE)
SourceInstance methods
closed?
Sourceclosed_at
Sourceclosed_at=(closed_at : Time | Nil)
Sourceconnection
Sourcecreated_at
Sourcedata
Sourcedata=(data : IO::Memory)
Sourceend_stream_received=(end_stream_received : Bool)
Sourceend_stream_received?
Sourceend_stream_sent=(end_stream_sent : Bool)
Sourceend_stream_sent?
Sourceerror_rate
Sourceflow_control_errors
Sourceid
Sourceidle_time
Sourcelast_error_time
Sourcepriority
Sourceprotocol_errors
Sourcereceive_data(data : Bytes, end_stream : Bool) : Nil
Sourcereceive_headers(headers : Array(Tuple(String, String)), end_stream : Bool, priority : Bool = false) : Nil
Sourcereceive_priority(priority : PriorityData) : Nil
Sourcereceive_rst_stream(error_code : ErrorCode) : Nil
Sourcereceived_data
Sourcerecent_errors?(window : Time::Span = 10.seconds) : Bool
Sourcerecv_window_size
Sourcerecv_window_size=(recv_window_size : Int64)
Sourcerequest_headers
Sourcerequest_headers=(request_headers : Array(Tuple(String, String)) | Nil)
Sourcerequest_trailers
Sourcerequest_trailers=(request_trailers : Array(Tuple(String, String)) | Nil)
Sourceresponse_headers
Sourceresponse_headers=(response_headers : Array(Tuple(String, String)) | Nil)
Sourceresponse_trailers
Sourceresponse_trailers=(response_trailers : Array(Tuple(String, String)) | Nil)
Sourcesend_data(data : Bytes, end_stream : Bool = false) : Nil
Sourcesend_data_chunked(data : Bytes, chunk_size : Int32 = 16384, end_stream : Bool = false) : Nil
Sourcesend_data_multi(chunks : Array(Bytes), end_stream : Bool = false) : Nil
Send data using multiple frames efficiently
send_headers(headers : Array(Tuple(String, String)), end_stream : Bool = false) : Nil
Sourcesend_rst_stream(error_code : ErrorCode) : Nil
Sourcesend_window_size
Sourcesend_window_size=(send_window_size : Int64)
Sourceshould_cleanup?
Sourcestate
Sourcestate_machine
Sourceupdate_recv_window(increment : Int32) : Nil
Sourceupdate_send_window(increment : Int32) : Nil
Source