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§
- Connection
Id - 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. - Http1
Connection - 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_timeoutcovers all of them without visiting each connection or request. - PoolKey
- Proxy
Environment - Request
- Request
Id - A host-chosen key for one in-flight request’s deadline in
Pool. - Route
Enums§
- Acquire
- Completion
- Phase
- Protocol
- Redirect
Mode - Transport
Request - After a CONNECT 2xx upgrade, the host feeds remaining bytes into TLS.
Constants§
Traits§
- Resolver
- Resolver implementations enqueue host operations; they must not block here.