Expand description
One blocking HTTP exchange, for callers on host request threads (the Hindsight client, the judge seat): a request,
its status, its retry-after header and (for a 2xx answer) its body read up to a size limit, cancelled by a signal
or a deadline. ReqwestTransport is the real one.
Structs§
- Http
Request - One request as the client builds it.
headersare final (names lower-case, values validated). - Http
Response - A status, its
retry-afterheader (as sent, any status) and, for a 2xx status only, the whole body (empty when there is none). A non-2xx body is never read. - Reqwest
Transport - reqwest with rustls on a private one-thread runtime, so blocking callers (host request threads) never run inside another runtime. No proxy (as Node’s fetch), no redirects, no decompression.
Enums§
Traits§
- Transport
- Sends one request. A 2xx answer whose
content-length(read as a JavaScriptNumber) exceedsmax_bytes, or whose body grows past it, isTransportError::TooLarge; the deadline (timeoutfrom the call) and the signal cover the whole exchange, body included.