Skip to main content

Module client

Module client 

Source
Available on crate feature client only.
Expand description

Standard, blocking HTTP/1.X client wrapping a boxed Read + Write + Send stream. Each HttpClientStd::send / HttpClientStd::send_http10 is self-contained (HTTP has no session context). With a TLS feature enabled, HttpClientStd::connect opens http:// / https:// URLs end-to-end via pimalaya_stream::std::stream::StreamStd.

Structs§

HttpClientStd
Std-blocking HTTP client wrapping a boxed Read + Write + Send stream.
SseStream
Long-lived HTTP/1.1 Server-Sent Events stream; each SseStream::next_frame / Iterator::next blocks until the next event arrives or the connection closes.

Enums§

HttpClientStdError
Errors returned by HttpClientStd.

Functions§

default_alpn
Default ALPN identifier for HTTPS connections: http/1.1 (RFC 7301 + IANA registry).