Trait elefren::http_send::HttpSend[][src]

pub trait HttpSend: Clone + Debug {
    fn execute(&self, client: &Client, request: Request) -> Result<Response>;

    fn send(
        &self,
        client: &Client,
        builder: &mut RequestBuilder
    ) -> Result<Response> { ... } }

Abstracts away the process of turning an HTTP request into an HTTP response

Required Methods

Converts an HTTP request into an HTTP response

Provided Methods

Convenience method so that .build() doesn't have to be called at every call site

Implementors