def host_field

bend-kit-url@0.4.1.0 · url.bend:433

import bend-kit-url@0.4.1.0/url.bend as Url
import Base

433def host_field(a: Abs) -> String:
434  Abs{+scheme, +host, +port, target} = a
435  +field = host_field.wrap(host, has(host, 58))
436  Bool.pick(String, U32.is_eq(port, abs.port.dflt(default_port(scheme))), field, field ++ ":" ++ U32.show(port))

Uses (10)

Used by (5)