def ask.len

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

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

1130# Content-Length when present; else the rest of the connection is the body
1131def ask.len(method: String, target: String, headers: List<&2, Header>,
1132  m: Maybe<&2, Nat>, body: String) -> Request:
1133  match m:
1134    case None{}:
1135      Request{method, target, headers, body}
1136    case Some{n}:
1137      ask.clen(method, target, headers, n, body)

Uses (7)

Used by (1)