[−][src]Struct reqwest_oauth1::Client
Compatible interface with reqwest's Client
.
Implementations
impl Client<()>
[src]
pub fn new() -> Self
[src]
Constructs a new Client
.
This method calls reqwest::Client::new() internally.
pub fn new_with_client(client: ReqwestClient) -> Self
[src]
Constructs a new Client
with specifying inner reqwest::Client
.
impl<T> Client<T> where
T: Clone,
[src]
T: Clone,
pub fn get<U: IntoUrl + Clone>(&self, url: U) -> RequestBuilder<T>
[src]
Convenience method to make a GET
request to a URL.
Errors
This method fails whenever supplied Url
cannot be parsed.
pub fn post<U: IntoUrl + Clone>(&self, url: U) -> RequestBuilder<T>
[src]
Convenience method to make a POST
request to a URL.
Errors
This method fails whenever supplied Url
cannot be parsed.
pub fn put<U: IntoUrl + Clone>(&self, url: U) -> RequestBuilder<T>
[src]
Convenience method to make a PUT
request to a URL.
Errors
This method fails whenever supplied Url
cannot be parsed.
pub fn patch<U: IntoUrl + Clone>(&self, url: U) -> RequestBuilder<T>
[src]
Convenience method to make a PATCH
request to a URL.
Errors
This method fails whenever supplied Url
cannot be parsed.
pub fn delete<U: IntoUrl + Clone>(&self, url: U) -> RequestBuilder<T>
[src]
Convenience method to make a DELETE
request to a URL.
Errors
This method fails whenever supplied Url
cannot be parsed.
pub fn head<U: IntoUrl + Clone>(&self, url: U) -> RequestBuilder<T>
[src]
Convenience method to make a HEAD
request to a URL.
Errors
This method fails whenever supplied Url
cannot be parsed.
pub fn request<U: IntoUrl + Clone>(
&self,
method: Method,
url: U
) -> RequestBuilder<T>
[src]
&self,
method: Method,
url: U
) -> RequestBuilder<T>
Start building a Request
with the Method
and Url
.
Returns a RequestBuilder<T>
, which will allow setting headers and
request body before sending.
Errors
This method fails whenever supplied Url
cannot be parsed.
Trait Implementations
impl<TSigner: Debug> Debug for Client<TSigner>
[src]
impl From<Client> for Client<()>
[src]
fn from(client: ReqwestClient) -> Self
[src]
Auto Trait Implementations
impl<TSigner> !RefUnwindSafe for Client<TSigner>
impl<TSigner> Send for Client<TSigner> where
TSigner: Send,
TSigner: Send,
impl<TSigner> Sync for Client<TSigner> where
TSigner: Sync,
TSigner: Sync,
impl<TSigner> Unpin for Client<TSigner> where
TSigner: Unpin,
TSigner: Unpin,
impl<TSigner> !UnwindSafe for Client<TSigner>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,