pub trait UnixClientExt<B: Body + Send> {
// Provided method
fn unix() -> Client<UnixConnector, B>
where B::Data: Send { ... }
}
Expand description
Extension trait for constructing a hyper HTTP client over a Unix domain socket.
Provided Methods§
sourcefn unix() -> Client<UnixConnector, B>
fn unix() -> Client<UnixConnector, B>
Construct a client which speaks HTTP over a Unix domain socket
§Example
use http_body_util::Full;
use hyper::body::Bytes;
use hyper_util::client::legacy::Client;
use hyperlocal::{UnixClientExt, UnixConnector};
let client: Client<UnixConnector, Full<Bytes>> = Client::unix();
Object Safety§
This trait is not object safe.