def redirect.at

emerging-ezhttp@0.21.0.0 · src/redirect.bend:248

import emerging-ezhttp@0.21.0.0/src/redirect.bend as Redirect
import 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))

Uses (5)

Used by (1)