Expand description
Provides helpers for implementing custom Transport
s 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.