def host.of
import emerging-ezhttp@0.21.0.0/src/url.bend as Urlimport 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