pub fn send_request(
method: Method,
url: Url,
headers: Option<HashMap<String, String>>,
timeout: Option<u64>,
body: Vec<u8>,
)
Expand description
Fire off an HTTP request. If a timeout is given, the response will come in the main event loop, otherwise none will be given.
Note that the response type is HttpClientResponse
, which, if
it originated from this request, will be of the variant HttpClientResponse::Http
.
It will need to be parsed and the body of the response will be stored in the LazyLoadBlob.