ankh v0.0.5 Ankh.Stream

HTTP/2 Stream strucure

Summary

Types

HTTP/2 Stream states

t()
  • id: stream id
  • state: stream state
  • hbf_type: type of HBF being accumulated
  • hbf: HBF accumulator, for reassembly
  • data: DATA accumulator, for reassembly

Functions

Creates a new Stream

Process the reception of a frame through the Stream state machine

Process sending a frame through the Stream state machine

Types

state()
state ::
  :idle |
  :open |
  :closed |
  :half_closed_local |
  :half_closed_remote |
  :reserved_remote |
  :reserved_local |
  atom

HTTP/2 Stream states

t()
t :: %Ankh.Stream{data: binary, hbf: binary, hbf_type: :headers | :push_promise, id: Integer.t, state: state, window_size: Integer.t}
  • id: stream id
  • state: stream state
  • hbf_type: type of HBF being accumulated
  • hbf: HBF accumulator, for reassembly
  • data: DATA accumulator, for reassembly

Functions

new(id, state)
new(Integer.t, state) :: t

Creates a new Stream

Parameters:

  • id: stream id
  • state: stream state
received_frame(stream, frame)
received_frame(t, Ankh.Frame.t) :: t

Process the reception of a frame through the Stream state machine

send_frame(stream, frame)
send_frame(t, Ankh.Frame.t) :: t

Process sending a frame through the Stream state machine