def wire.segs
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
import bend-kit-url@0.4.1.0/url.bend as Url
79# Non-S3 services encode the wire path a second time; '%' becomes '%25'.
80def wire.segs(xs: List<&2, String>) -> List<&2, String>:
81 match xs:
82 case Nil{}:
83 Nil{}
84 case Con{h, t}:
85 Con{Url.pct.encode_q(utf8(h)), wire.segs(t)}