[−][src]Struct hyper_unix_connector::Uri
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.
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]
P: AsRef<Path>,
Productes a new Uri from path to domain socket and request path.
request path should include a leading slash
Trait Implementations
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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,