class Duo::Stream

Defined in:

duo/stream.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(conn : Duo::Connection, id : Int32, priority : Duo::Priority = DEFAULT_PRIORITY.dup, state : Duo::State = State::Idle) #

[View source]

Instance Method Detail

def ==(other : Stream) #

[View source]
def ==(other) #
Description copied from class Reference

Returns false (other can only be a Value here).


[View source]
def active? : Bool #

[View source]
def conn : Connection #

[View source]
def data : Data #

[View source]
def data? : Bool #

[View source]
def headers : HTTP::Headers #

[View source]
def id : Int32 #

[View source]
def local_window_size : Int32 #

[View source]
def max_frame_size : Int32 #

[View source]
def priority : Priority #

[View source]
def priority=(priority : Priority) #

[View source]
def process_window_update(size) : Nil #

[View source]
def remote_window_size : Int32 #

[View source]
def resume_writeable #

[View source]
def send_data(data : String, flags : Frame::Flags = Frame::Flags::None) : Nil #

[View source]
def send_data(data : Bytes, flags : Frame::Flags = Frame::Flags::None) : Nil #

[View source]
def send_headers(type : FrameType, headers, flags, payload) : Nil #

[View source]
def send_headers(headers : HTTP::Headers, flags : Frame::Flags = Frame::Flags::None) : Nil #

[View source]
def send_push_promise(headers : HTTP::Headers, flags : Frame::Flags = Frame::Flags::None) : Stream | Nil #

[View source]
def send_rst_stream(error_code : Error::Code) : Nil #

[View source]
def send_window_update(increment) #

[View source]
def state : State #

[View source]
def state=(state : State) #

[View source]
def trailing_headers : HTTP::Headers #

[View source]
def trailing_headers? : HTTP::Headers | Nil #

[View source]
def wait_writeable #

[View source]
def zero? #

[View source]

Macro Detail

macro method_missing(call) #

[View source]