Function chttp::send

source ·
pub fn send<B: Into<Body>>(request: Request<B>) -> Result<Response, Error>
Expand description

Sends an HTTP request.

The request may include extensions to customize how it is sent. You can include an Options struct as a request extension to control various connection and protocol options.

The response body is provided as a stream that may only be consumed once.