def sv.frame

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

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

5766def sv.frame(+max: Nat, req: Req, +v11: Bool, rest: Bytes.Bytes, te: Bool) -> Turn:
5767  Req{method, path, +headers, body} = req
5768  match te:
5769    case True{}:
5770      sv.chunk(max, Req{method, path, headers, body}, v11, 0, dc.start(), Nil{}, rest)
5771    case False{}:
5772      sv.cl(max, Req{method, path, headers, body}, v11, rest, parse_u32(header(headers, "content-length")))

Uses (11)

Used by (1)