Skip to main content

send

Function send 

Source
pub async fn send(request: Request<Vec<u8>>) -> Result<Response, Error>
Expand description

Send a request, checking both upload and request transmission completion.

Use an absolute HTTP(S) URI and Vec::new() for an empty request body. Optional WASI timeouts can be supplied through a RequestOptionsExtension. Status codes such as 404 and 500 are returned normally. Inspect the status and headers before passing the response to a consuming body helper.