ankh v0.0.4 Ankh.Stream

HTTP/2 Stream strucure

Summary

Types

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

t :: %Ankh.Stream{data: binary, hbf: binary, hbf_type: :headers | :push_promise, id: Integer.t, state: atom, 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)

Specs

new(Integer.t) :: t

Creates a new Stream

Parameters:

  • id: stream id
received_frame(stream, frame)

Specs

received_frame(t, Ankh.Frame.t) :: t

Process the reception of a frame through the Stream state machine

send_frame(stream, frame)

Specs

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

Process sending a frame through the Stream state machine