Module http

Source
Expand description

Provides helpers for implementing custom Transports using reqwest.

This module will be disabled if the http feature is not enabled.

The default Transport implementation for RequestBuilder looks roughly like this:

// serialize request into `body` (a `Vec<u8>`)

build_headers(builder, body.len());

// send `body` using `builder` and get response

check_response(&response)?;

From this, you can build your own custom transports.

Functionsยง

build_headers
Appends all HTTP headers required by the XML-RPC specification to the RequestBuilder.
check_response
Checks that a reqwest Response has a status code indicating success and verifies certain headers.