Trait r2d2_arangors::pool::ClientExt [−][src]
pub trait ClientExt: Sync + Clone { pub fn new<U>(headers: U) -> Result<Self, ClientError>
where
U: Into<Option<HeaderMap<HeaderValue>>>; pub fn headers(&mut self) -> &mut HeaderMap<HeaderValue>; pub fn request(
&self,
request: Request<String>
) -> Result<Response<String>, ClientError>; pub fn get<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn post<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn put<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn delete<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn patch<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn connect<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn head<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn options<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } pub fn trace<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError>
where
T: Into<String> + Send, { ... } }
Required methods
pub fn new<U>(headers: U) -> Result<Self, ClientError> where
U: Into<Option<HeaderMap<HeaderValue>>>,
[src]
U: Into<Option<HeaderMap<HeaderValue>>>,
pub fn headers(&mut self) -> &mut HeaderMap<HeaderValue>
[src]
pub fn request(
&self,
request: Request<String>
) -> Result<Response<String>, ClientError>
[src]
&self,
request: Request<String>
) -> Result<Response<String>, ClientError>
Provided methods
pub fn get<T>(&self, url: Url, text: T) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
T: Into<String> + Send,
pub fn post<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
pub fn put<T>(&self, url: Url, text: T) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
T: Into<String> + Send,
pub fn delete<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
pub fn patch<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
pub fn connect<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
pub fn head<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
pub fn options<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
pub fn trace<T>(
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
[src]
&self,
url: Url,
text: T
) -> Result<Response<String>, ClientError> where
T: Into<String> + Send,
Implementations on Foreign Types
impl ClientExt for ReqwestClient
[src]
impl ClientExt for ReqwestClient
[src]pub fn new<U>(headers: U) -> Result<ReqwestClient, ClientError> where
U: Into<Option<HeaderMap<HeaderValue>>>,
[src]
U: Into<Option<HeaderMap<HeaderValue>>>,
pub fn headers(&mut self) -> &mut HeaderMap<HeaderValue>
[src]
pub fn request(
&self,
request: Request<String>
) -> Result<Response<String>, ClientError>
[src]
&self,
request: Request<String>
) -> Result<Response<String>, ClientError>