Step.step.text: def of emerging-ezhttp@0.21.0.0 Import: import emerging-ezhttp@0.21.0.0/src/step.bend as Step Lines 19-28 of emerging-ezhttp@0.21.0.0/src/step.bend: https://jend.leeeet.dev/read.txt?path=emerging-ezhttp@0.21.0.0/src/step.bend&start_line=19&end_line=28 import Base import emerging-ezhttp@0.21.0.0/src/http.bend as Http import emerging-ezhttp@0.21.0.0/src/qs.bend as Qs # a request received as octets, as text: its method, target, header names # and values and body each decoded as UTF-8 (SPEC.md HTTP-SRV-2); a bad one # keeps its reason def step.text(req: Http.Request) -> Http.Request: match req: case Http.Bad{why}: Http.Bad{why} case Http.Request{method, target, headers, body}: Http.Request{Qs.octets.text(method), Qs.octets.text(target), Qs.octets.headers(headers), Qs.octets.text(body)} Uses (3): https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/http.bend&name=Request https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/qs.bend&name=octets.headers https://jend.leeeet.dev/definition.txt?path=emerging-ezhttp@0.21.0.0/src/qs.bend&name=octets.text