def up.url
bend-kit-http@0.38.5.0 · http.bend:5443
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
5443def up.url(+method: String, +ms: U32, headers: Map<&2, List<&2, String>>,
5444 u: Maybe<&2, Url.Abs>, cert: Maybe<&2, Cert>, +ca: String) ->
5445 IO(Result<&1, &1, Err, Up>):
5446 match u:
5447 case None{}:
5448 IO.pure(Result<&1, &1, Err, Up>, Fail{ErrUrl{}})
5449 case Some{+a}:
5450 up.origin(method, ms, headers, Url.host_field(a), a, pool.scheme.ok(a), cert, ca)