Quiver.Pool.HTTP1 (quiver v0.2.0)

Copy Markdown View Source

HTTP/1 connection pool backed by NimblePool.

Connections are created lazily in the caller's process on first checkout. Subsequent checkouts reuse idle connections. Dead and idle-timed-out connections are evicted via handle_ping. Stats tracked in ETS.

Summary

Types

origin()

@type origin() :: {:http | :https, String.t(), :inet.port_number()}

t()

@type t() :: %Quiver.Pool.HTTP1{
  config: map() | nil,
  origin: origin() | nil,
  stats_table: :ets.table() | nil
}

Functions

start_link(opts)

@spec start_link(keyword()) :: GenServer.on_start() | {:error, term()}