[][src]Struct hyper_unix_connector::Uri

pub struct Uri<'a> { /* fields omitted */ }

A type which implements Into for hyper's hyper::Uri type targetting unix domain sockets.

You can use this with any of the HTTP factory methods on hyper's Client interface and for creating requests.

Borrowed from hyperlocal.

extern crate hyper;
extern crate hyper_unix_connector;

let url: hyper::Uri = hyper_unix_connector::Uri::new(
  "/path/to/socket", "/urlpath?key=value"
 ).into();
 let req = hyper::Request::get(url).body(()).unwrap();

Methods

impl<'a> Uri<'a>[src]

pub fn new<P>(socket: P, path: &'a str) -> Self where
    P: AsRef<Path>, 
[src]

Productes a new Uri from path to domain socket and request path. request path should include a leading slash

Trait Implementations

impl<'a> Into<Uri> for Uri<'a>[src]

impl<'a> Debug for Uri<'a>[src]

Auto Trait Implementations

impl<'a> Send for Uri<'a>

impl<'a> Sync for Uri<'a>

impl<'a> Unpin for Uri<'a>

impl<'a> UnwindSafe for Uri<'a>

impl<'a> RefUnwindSafe for Uri<'a>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]