def res.base
import bend-kit-url@0.4.1.0/url.bend as Urlimport Base
532def res.base(+r: String, b: PQ, a: Abs) -> Maybe<&2, Abs>:
533 PQ{bpath, bq, bhas} = b
534 Abs{scheme, host, port, target} = a
535 res.rel(scheme, host, port, bpath, bq, bhas, res.ref(abs.fst(take_to(r, 35))))