Skip to main content

send

Function send 

Source
pub fn send(request: &Request<'_>) -> Result<Response, String>
Expand description

Send one request and read its whole answer. Every status is an answer, so a 404 is Ok; an Err is a request that got no answer, with the reason.

ยงErrors

The reason where the request got no answer: an unresolvable host, a refused or timed-out connection, a TLS failure, or a seam value that is not a local origin.