def sv.cont

bend-kit-http@0.38.5.0 · http.bend:5738

import bend-kit-http@0.38.5.0/http.bend as Http
import Base

5738# RFC 9110 §10.1.1: answer 100 Continue only when the body is still to come.
5739def sv.cont(want: Bool, t: Turn) -> Turn:
5740  match t:
5741    case TurnMore{sv, c}:
5742      TurnMore{sv, want}
5743    case TurnClose{}:
5744      TurnClose{}
5745    case TurnInputFailed{operation, code, message}:
5746      TurnInputFailed{operation, code, message}
5747    case TurnFail{s}:
5748      TurnFail{s}
5749    case TurnReq{req, rest, v11}:
5750      TurnReq{req, rest, v11}

Uses (2)

Used by (1)