def sv.frame.req
bend-kit-http@0.38.2.0 · http.bend:5876
import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
5876def sv.frame.req(t: Turn) -> Maybe<&1, String & String>:
5877 match t:
5878 case TurnReq{req, rest, v11}:
5879 Req{method, path, headers, body} = req
5880 Some{(Bytes.to_string(body), Bytes.to_string(rest))}
5881 case TurnMore{sv, c}:
5882 None{}
5883 case TurnFail{s}:
5884 None{}
5885 case TurnClose{}:
5886 None{}
5887 case TurnInputFailed{operation, code, message}:
5888 None{}