Turns a response into the request's result, or into a NetworkClientError
when its status is not 2xx, decoding the body by the request's Accept
header. A client that answers a request without fetch, e.g. from a local
engine, runs its answer through this so callers see the same results and
errors either way.
Turns a response into the request's result, or into a
NetworkClientErrorwhen its status is not 2xx, decoding the body by the request'sAcceptheader. A client that answers a request withoutfetch, e.g. from a local engine, runs its answer through this so callers see the same results and errors either way.