def host.of

emerging-ezhttp@0.21.0.0 · src/url.bend:44

import emerging-ezhttp@0.21.0.0/src/url.bend as Url
import Base

44# the host an authority named: everything before the colon
45def host.of(ps: List<&2, String>) -> String:
46  match ps:
47    case []:
48      ""
49    case h <> t:
50      h

Uses (2)

Used by (2)