def abs.hostok
import bend-net-url@0.4.0.0/url.bend as Urlimport Base
337def abs.hostok(scheme: String, host: String, port: Maybe<&2, U32>, rest: String, ok: Bool) -> Maybe<&2, Abs>:
338 match ok:
339 case False{}:
340 None{}
341 case True{}:
342 abs.build(scheme, host, port, rest)