def sv.frame.req
bend-kit-http@0.38.5.0 · http.bend:5868
import bend-kit-http@0.38.5.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
5868def sv.frame.req(t: Turn) -> Maybe<&1, String & String>:
5869 match t:
5870 case TurnReq{req, rest, v11}:
5871 Req{method, path, headers, body} = req
5872 Some{(Bytes.to_string(body), Bytes.to_string(rest))}
5873 case TurnMore{sv, c}:
5874 None{}
5875 case TurnFail{s}:
5876 None{}
5877 case TurnClose{}:
5878 None{}
5879 case TurnInputFailed{operation, code, message}:
5880 None{}