Skip to main content

Module client

Module client 

Source
Expand description

Host-driven fetch transport policy. DNS, environment, sockets and time are inputs. JS body conversions, promise dispatch and abort reason objects remain in Perry.

Structs§

ConnectionId
Issued by Pool::acquire. Ids are never reused, so a stale id can never name a newer connection.
Deadlines
A deadline heap keyed by K, holding at most one deadline per key.
Http1Connection
A single non-pipelined HTTP/1 client connection. All byte buffers are reused. The host submits output, acknowledges completion, and supplies received bytes. Do not mutate the connection while a completion-layer write borrows output().
Lifecycle
Pool
Connection reuse plus every client-wide deadline: idle connections and, when the host registers them, in-flight requests. One next_timeout covers all of them without visiting each connection or request.
PoolKey
ProxyEnvironment
Request
RequestId
A host-chosen key for one in-flight request’s deadline in Pool.
Route

Enums§

Acquire
Completion
Phase
Protocol
RedirectMode
TransportRequest
After a CONNECT 2xx upgrade, the host feeds remaining bytes into TLS.

Constants§

DEFAULT_MAX_REDIRECTS

Traits§

Resolver
Resolver implementations enqueue host operations; they must not block here.

Functions§

from_alpn
transport_error