Expand description
Minimal blocking HTTP/1.1 client over loopback TcpStream. Every call has an
explicit deadline: a request that never answers is a failed step, not a hang.
Structs§
Functions§
- loopback
- port_
open - request
- One request.
authis the fullAuthorizationheader value when present. - request_
with - Like
requestwith custom request headers.headersare written after the defaults; aHost,Connection,Accept,Content-LengthorAuthorization(whenauthis given) entry replaces the default of that name, and aContent-Typeentry replaces the JSON default sent with a body. A name or value holding CR, LF or NUL, or a name that is empty or holds:, is refused. The response carries every header inResponse::headers.