[][src]Trait static_http_cache::reqwest_mock::Client

pub trait Client {
    type Response: HttpResponse;
    fn execute(
        &self,
        request: Request
    ) -> Result<Self::Response, Box<dyn Error>>; }

Represents a thing that can send requests.

Modelled after reqwest::Client.

Associated Types

type Response: HttpResponse

Sending a request produces this kind of response.

Loading content...

Required methods

fn execute(&self, request: Request) -> Result<Self::Response, Box<dyn Error>>

Send the given request and return the response (or an error).

Loading content...

Implementations on Foreign Types

impl Client for Client[src]

type Response = Response

Loading content...

Implementors

Loading content...