pub trait ClientRequest {
    type Response: DeserializeOwned;

    fn url(&self) -> String;
    fn method(&self) -> HttpMethod;

    fn headers(&self) -> Vec<(String, String)> { ... }
    fn body(&self) -> Option<String> { ... }
    fn deserialize(
        &self,
        response: &impl ClientResponse
    ) -> Result<Self::Response, String> { ... } }

Required Associated Types

Required Methods

Provided Methods

Implementors