Struct tsukuyomi::local::Client [−][src]
pub struct Client<'a> { /* fields omitted */ }
A type which emulates a connection to a peer.
Methods
impl<'a> Client<'a>
[src]
impl<'a> Client<'a>
pub fn request<'b, M, U>(
&'b mut self,
method: M,
uri: U
) -> LocalRequest<'a, 'b> where
Method: HttpTryFrom<M>,
Uri: HttpTryFrom<U>,
[src]
pub fn request<'b, M, U>(
&'b mut self,
method: M,
uri: U
) -> LocalRequest<'a, 'b> where
Method: HttpTryFrom<M>,
Uri: HttpTryFrom<U>,
Create a LocalRequest
associated with this client.
pub fn get<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
[src]
pub fn get<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
Equivalent to Client::request(Method::GET, uri)
.
pub fn post<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
[src]
pub fn post<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
Equivalent to Client::request(Method::POST, uri)
.
pub fn put<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
[src]
pub fn put<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
Equivalent to Client::request(Method::PUT, uri)
.
pub fn delete<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
[src]
pub fn delete<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
Equivalent to Client::request(Method::DELETE, uri)
.
pub fn head<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
[src]
pub fn head<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
Equivalent to Client::request(Method::HEAD, uri)
.
pub fn patch<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
[src]
pub fn patch<'b, U>(&'b mut self, uri: U) -> LocalRequest<'a, 'b> where
Uri: HttpTryFrom<U>,
Equivalent to Client::request(Method::PATCH, uri)
.