type Response
import emerging-ezhttp@0.21.0.0/src/client.bend as Clientimport Base
import bend-kit-bytes@0.3.2.0/bytes.bend as Bytes
import emerging-ezhttp@0.21.0.0/src/http.bend as Http
16# structured client result: transport/parse error, or an HTTP response: its
17# status, its header fields and reason phrase as text (decoded from the octets
18# received as UTF-8, SPEC.md HTTP-BODY-4, HTTP-CLI-11), and its body's octets
19# as they arrived, packed (`client.text` decodes them when asked)
20type Response is Type: # noqa: L001 the wire effect keeps src/client.bend out of law files (HTTP-TRUST-5)
21 Err{why: String}
22 Response{status: U32, headers: List<&2, Http.Header>, reason: String,
23 bytes: Bytes.Bytes}