hyperlocal

Trait UnixClientExt

source
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§

source

fn unix() -> Client<UnixConnector, B>
where B::Data: Send,

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.

Implementations on Foreign Types§

source§

impl<B: Body + Send> UnixClientExt<B> for Client<UnixConnector, B>

Implementors§