def absolute.authority

bend-kit-router@0.2.0.0 · target.bend:173

import bend-kit-router@0.2.0.0/target.bend as Target
import Base
import bend-kit-url@0.4.1.0/url.bend as Url

173def absolute.authority(ok: Bool, authority: String, path: String) -> Maybe<&2, Target>:
174  match ok:
175    case False{}:
176      None{}
177    case True{}:
178      origin.split(Url.take_to(path, 63), Some{authority})

Uses (6)

Used by (1)