ankh v0.4.4 Ankh.Stream
HTTP/2 stream process
Process implementing the HTTP/2 stream state machine
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Process a received frame for the stream
Process a received frame for the stream
Reserves the stream for push_promise
Process and send a frame on the stream
Starts a new stream fot the provided connection
Link to this section Types
Stream HBF type
Stream id
Stream mode
Reserve mode
Link to this type
state()
state() :: :idle | :open | :closed | :half_closed_local | :half_closed_remote | :reserved_remote | :reserved_local
Stream states
Stream process
Link to this section Functions
Link to this function
child_spec(arg)
Returns a specification to start this module under a supervisor.
See Supervisor
.
Process a received frame for the stream
Link to this function
recv_raw(stream, type, data)
recv_raw(t(), Ankh.Frame.type(), data :: binary()) :: GenServer.on_call()
Process a received frame for the stream
Reserves the stream for push_promise
Process and send a frame on the stream
Link to this function
start_link(connection, id, recv_table, send_table, max_frame_size, controlling_process \\ nil, mode \\ :reassemble)
start_link( Ankh.Connection.t(), id(), pid(), pid(), Integer.t(), pid() | nil, mode() ) :: GenServer.on_start()
Starts a new stream fot the provided connection