def abs.build

bend-kit-url@0.4.1.0 · url.bend:318

import bend-kit-url@0.4.1.0/url.bend as Url
import Base

318# §3.5: the fragment is for the client; it never goes on the wire.
319def abs.build(scheme: String, host: String, port: Maybe<&2, U32>, rest: String) -> Maybe<&2, Abs>:
320  match port:
321    case None{}:
322      None{}
323    case Some{p}:
324      Some{Abs{scheme, host, p, abs.target(abs.fst(take_to(rest, 35)))}}

Uses (7)

Used by (1)