[−][src]Struct reqwest_mock::client::DirectClient
Just a regular client performing no mocking at all.
The idea is that this one can be used in production code, while another client is to be used in testing code.
Implementations
impl DirectClient
[src]
Trait Implementations
impl Client for DirectClient
[src]
fn execute(
&self,
config: Option<&ClientConfig>,
request: Request
) -> Result<Response, Error>
[src]
&self,
config: Option<&ClientConfig>,
request: Request
) -> Result<Response, Error>
fn config(&self) -> &ClientConfig
[src]
fn config_mut(&mut self) -> &mut ClientConfig
[src]
fn get<'cl, U: IntoUrl>(&'cl self, url: U) -> RequestBuilder<'cl, Self>
[src]
fn post<'cl, U: IntoUrl>(&'cl self, url: U) -> RequestBuilder<'cl, Self>
[src]
fn put<'cl, U: IntoUrl>(&'cl self, url: U) -> RequestBuilder<'cl, Self>
[src]
fn patch<'cl, U: IntoUrl>(&'cl self, url: U) -> RequestBuilder<'cl, Self>
[src]
fn delete<'cl, U: IntoUrl>(&'cl self, url: U) -> RequestBuilder<'cl, Self>
[src]
fn head<'cl, U: IntoUrl>(&'cl self, url: U) -> RequestBuilder<'cl, Self>
[src]
fn request<'cl, U: IntoUrl>(
&'cl self,
method: Method,
url: U
) -> RequestBuilder<'cl, Self>
[src]
&'cl self,
method: Method,
url: U
) -> RequestBuilder<'cl, Self>
impl From<DirectClient> for GenericClient
[src]
fn from(c: DirectClient) -> Self
[src]
Auto Trait Implementations
impl RefUnwindSafe for DirectClient
impl Send for DirectClient
impl Sync for DirectClient
impl Unpin for DirectClient
impl UnwindSafe for DirectClient
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,