HTTP.HTTP2.StreamState (http_core v0.16.7)

Copy Markdown View Source

Pure lifecycle and two-sided flow-control state for one stream.

Summary

Types

t()

@type t() :: %HTTP.HTTP2.StreamState{
  end_stream_received?: term(),
  end_stream_sent?: term(),
  expected_content_length: term(),
  headers?: term(),
  id: term(),
  metadata: term(),
  purpose: term(),
  receive_window: term(),
  received_body_bytes: term(),
  request_headers_sent?: term(),
  request_method: term(),
  request_ref: term(),
  response_phase: term(),
  response_status: term(),
  send_window: term(),
  state: term(),
  unacknowledged: term()
}

Functions

acknowledge_data(s, bytes)

close(s)

closed?(arg1)

new(id, opts \\ [])

open(s)

receive_data(s, bytes, end_stream? \\ false)

receive_headers(s, end_stream? \\ false)

receive_response_data(s, bytes, end_stream?)

Tracks application DATA bytes independently of flow-control wire bytes.

receive_response_headers(s, headers, end_stream?)

Validates an inbound response header block and advances its phase.

rst(s, code)

send_data(s, bytes, end_stream? \\ false)

send_headers(s, end_stream? \\ false)

sendable?(s)

update_receive_window(s, increment)

update_send_window(s, increment)