Struct hyperlocal::Uri[][src]

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

extern crate hyper;
extern crate hyperlocal;

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

Methods

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

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

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Performs the conversion.

Auto Trait Implementations

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

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