Available on crate feature
client only.Expand description
§HTTP client surfaces
Two traits and one implementation of them. HttpClient and
HttpClientAsync carry the request surface: implement the two
pumps and inherit the commands. HttpClientStd is the opinionated
blocking implementation, wrapping a boxed Read + Write + Send
stream.
Each send / send_http10 is self-contained, HTTP having no
session context. With a TLS feature enabled,
HttpClientStd::connect opens http:// / https:// URLs
end-to-end via pimalaya_stream::stream::Stream.
Structs§
- Http
Client Std - Std-blocking HTTP client wrapping a boxed
Read + Write + Sendstream. - SseStream
- Long-lived HTTP/1.1 Server-Sent Events stream; each
SseStream::next_frame/Iterator::nextblocks until the next event arrives or the connection closes.
Enums§
- Http
Client Error - Errors returned by the client surfaces.
Traits§
- Http
Client - Blocking HTTP request surface: implement the two pumps and inherit the commands.
- Http
Client Async - Async HTTP request surface, the
HttpClienttwin for callers whose transport is a future.