def abs.build
import bend-net-url@0.4.0.0/url.bend as Urlimport 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)))}}