Skip to main content

Module http_client

Module http_client 

Source
Expand description

HTTP-over-TCP management client. Mirrors crate::UnixMgmtClient but talks to crate::http_server over hyper::client::conn::http1.

One TCP connection per call: the management API is verb-at-a-time and not chatty enough to amortize a connection pool. Each call opens a fresh TCP stream, runs the H1 handshake, sends a single POST, consumes either a one-shot JSON body or a chunked NDJSON stream, then drops the connection.

Structs§

HttpMgmtClient
Plaintext HTTP/1.1 mgmt client. Cheap to clone — addr is Copy, token is reference-counted.