Skip to main content

Module dial9

Module dial9 

Available on crate features dial9 and http and std only.
Expand description

HTTP operation recording shared by HTTP/1, HTTP/2 and HTTP/3.

The backend client and core server adapter use this automatically with their dial9 feature. Use Dial9Layer around a logical request service to also correlate its retries, redirects, DNS and connection selection. Each attempt remains a child operation. Bodies retain the context after response headers; dropping a streaming response records cancellation, not successful completion. No URLs, headers or body contents are recorded.

Structs§

Dial9
Dial9Layer
Record a logical request, including work performed by the inner service.
HttpRequestStarted
HTTP request metadata. version is 9, 10, 11, 20 or 30.
HttpResponseHeaders
Response headers arrived; the operation continues through the response body.

Functions§

observe_request
Shared request boundary for protocol adapters. Response byte totals count data yielded to the consumer, not bytes acknowledged by the peer. HTTP error status codes are recorded separately from transport/body failures.