def frame

emerging-ezhttp@0.21.0.0 · src/http.bend:1289

import emerging-ezhttp@0.21.0.0/src/http.bend as Http
import Base

1289# the framing of a response: none when bare (a reply to HEAD, a 204 or a 304),
1290# else Transfer-Encoding chunked, else Content-Length, else the close
1291def frame(bare: Bool, te: String, +lens: List<&2, String>) -> Frame:
1292  match bare:
1293    case True{}:
1294      Bare{}
1295    case False{}:
1296      frame.te(lens, String.contains(String.to_lower(te), "chunked"))

Uses (7)

Used by (2)