def stream.start
bend-kit-http@0.38.5.0 · http.bend:5271
import bend-kit-http@0.38.5.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
5271def stream.start(method: String, headers: Map<&2, List<&2, String>>, body: Bytes.Bytes, u: Maybe<&2, Url.Abs>) -> Sn:
5272 match u:
5273 case None{}:
5274 SnDone{Fail{ErrUrl{}}}
5275 case Some{a}:
5276 SnGo{20n, Hop{method, a, req.put(Map.to_list(&2, List<&2, String>, headers), empty()), body}}