A non-2xx status is a successful exchange: 404 and 503 arrive here
carrying their statusCode, and the layer above decides what they mean.
Only a failure to obtain a response fails a roundTrip.
Response header names are ASCII-lowercased and a header may repeat, so
headers maps each name to the list of values it carried. body is the
whole body, fully buffered, so a request can be replayed without any
body-lifecycle discipline at the call site.
The result of one successful HTTP exchange.
A non-2xx status is a successful exchange:
404and503arrive here carrying theirstatusCode, and the layer above decides what they mean. Only a failure to obtain a response fails aroundTrip.Response header names are ASCII-lowercased and a header may repeat, so
headersmaps each name to the list of values it carried.bodyis the whole body, fully buffered, so a request can be replayed without any body-lifecycle discipline at the call site.