Struct hyperlocal::DomainUrl [] [src]

pub struct DomainUrl<'a> {
    // some fields omitted
}

A type which implements hyper's IntoUrl interface for unix domain sockets. You can use this with any of the HTTP factory methods on hyper's Client interface.

 extern crate hyper;
 extern crate hyperlocal;

 let client = hyper::Client::with_connector(
     hyperlocal::UnixSocketConnector
 );
 let url = hyperlocal::DomainUrl::new(
     "/path/to/socket", "/urlpath?key=value"
 );

 client.get(url).send();

Methods

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

fn new(socket: &'a str, path: &'a str) -> DomainUrl<'a>

path to socket and url path. path should include a leading slash

Trait Implementations

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'a> IntoUrl for DomainUrl<'a>
[src]

fn into_url(self) -> Result<Url, UrlError>

Consumes the object, trying to return a Url.