def redirect.at
import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirectimport Base
import emerging-ezhttp@0.21.0.0/src/url.bend as Url
248# a Location against the current URL, once it is parsed
249def redirect.at(l: Url.Loc, +loc: String) -> Maybe<&2, String>:
250 match l:
251 case Url.Bad{why}:
252 None{}
253 case Url.Loc{scheme, host, port, path}:
254 redirect.against(scheme, host, port, path, loc, redirect.sort(loc))