def ask.origin

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

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

1187# origin-form, or a bad request when the target is not an absolute-path
1188def ask.origin(method: String, target: String, +ls: List<&2, String>,
1189  body: String, ok: Bool) -> Request:
1190  match ok:
1191    case False{}:
1192      Bad{"the request-target is not in origin-form"}
1193    case True{}:
1194      +hs = head.list(ls)
1195      ask.frame(method, target, hs, head.go(ls, "transfer-encoding"),
1196        head.values(ls, "content-length"), body)

Uses (8)

Used by (1)