def fetch.start

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

import bend-kit-http@0.38.2.0/http.bend as Http
import Base
import bend-kit-url@0.4.1.0/url.bend as Url
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes

3956def fetch.start(method: String, headers: Map<&2, List<&2, String>>, body: Bytes.Bytes, u: Maybe<&2, Url.Abs>, +enc: String) -> Next:
3957  match u:
3958    case None{}:
3959      NDone{Fail{ErrUrl{}}}
3960    case Some{a}:
3961      NGo{20n, Hop{method, a, accept.enc(req.put(Map.to_list(&2, List<&2, String>, headers), empty()), enc), body}}

Uses (14)

Used by (3)