def port.num
import emerging-ezhttp@0.21.0.0/src/url.bend as Urlimport Base
20# a port that parsed, or the scheme's own when the digits were not digits
21def port.num(got: Maybe<&2, U32>, scheme: String) -> U32:
22 match got:
23 case None{}:
24 dflt(scheme)
25 case Some{n}:
26 n