[][src]Struct reqwest_oauth1::Client

pub struct Client<TSigner> { /* fields omitted */ }

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]

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]

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]

Auto Trait Implementations

impl<TSigner> !RefUnwindSafe for Client<TSigner>

impl<TSigner> Send for Client<TSigner> where
    TSigner: Send

impl<TSigner> Sync for Client<TSigner> where
    TSigner: Sync

impl<TSigner> Unpin for Client<TSigner> where
    TSigner: Unpin

impl<TSigner> !UnwindSafe for Client<TSigner>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,