def sv.frame.go

bend-kit-http@0.38.2.0 · http.bend:5890

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

5890def sv.frame.go(xs: List<&2, String>, t: Turn) -> Maybe<&1, String & String>:
5891  match xs:
5892    case Nil{}:
5893      sv.frame.req(t)
5894    case Con{+x, rest}:
5895      match t:
5896        case TurnMore{sv, c}:
5897          sv.frame.go(rest, sv.step(False{}, serve.max(), 65536, sv, Bytes.from_string(x)))
5898        case TurnReq{req, r, v11}:
5899          sv.frame.req(TurnReq{req, r, v11})
5900        case TurnFail{s}:
5901          None{}
5902        case TurnClose{}:
5903          None{}
5904        case TurnInputFailed{operation, code, message}:
5905          None{}

Uses (10)

Used by (1)