def sv.frame

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

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

5774def sv.frame(+max: Nat, req: Req, +v11: Bool, rest: Bytes.Bytes, te: Bool) -> Turn:
5775  Req{method, path, +headers, body} = req
5776  match te:
5777    case True{}:
5778      sv.chunk(max, Req{method, path, headers, body}, v11, 0, dc.start(), Nil{}, rest)
5779    case False{}:
5780      sv.cl(max, Req{method, path, headers, body}, v11, rest, parse_u32(header(headers, "content-length")))

Uses (11)

Used by (1)