HTTP.HTTP2.ConnectionOwner (http_runtime v0.16.1)
View SourceLong-lived, single-writer HTTP/2 connection runtime.
The protocol state remains in HTTP.HTTP2.Connection; this process owns the
socket, serializes writes, and routes incoming frames to request owners.
Summary
Functions
Acknowledges the oldest DATA delivery after application consumption.
Returns a specification to start this module under a supervisor.
Types
@type t() :: %{ lifecycle: :connecting | :initializing | :ready | :draining | :closed, socket: term(), transport: transport(), connection: HTTP.HTTP2.Connection.t(), streams: %{optional(pos_integer()) => map()}, refs: %{optional(reference()) => pos_integer()}, bytes: non_neg_integer(), max_queue_bytes: pos_integer(), queue_peak_bytes: non_neg_integer(), wrote_preface?: boolean() }
Functions
Acknowledges the oldest DATA delivery after application consumption.
@spec cancel(pid(), reference() | pos_integer()) :: :ok | {:error, term()}
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec release_stream(pid(), reference() | pos_integer()) :: :ok
@spec send_data(pid(), pos_integer(), binary(), boolean()) :: :ok | {:error, term()}
@spec start_link(keyword()) :: GenServer.on_start()