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
fn execute(&self, client: &Client, request: Request) -> Result<Response>
Converts an HTTP request into an HTTP response
Provided Methods
fn send(
&self,
client: &Client,
builder: &mut RequestBuilder
) -> Result<Response>
&self,
client: &Client,
builder: &mut RequestBuilder
) -> Result<Response>
Convenience method so that .build() doesn't have to be called at every call site