def res.base
import bend-net-url@0.4.0.0/url.bend as Urlimport Base
482def res.base(+r: String, b: PQ, a: Abs) -> Maybe<&2, Abs>:
483 PQ{bpath, bq, bhas} = b
484 Abs{scheme, host, port, target} = a
485 res.rel(scheme, host, port, bpath, bq, bhas, res.ref(abs.fst(take_to(r, 35))))