def squash.if
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
182# Canonical headers: lowercase names, trimmed values with space runs squashed, sorted by name,
183# and a repeated name's values joined by ',' in the order given.
184def squash.if(space: Bool, sp: Bool, +c: U32, rest: String) -> String:
185 match space sp:
186 case True{} True{}:
187 rest
188 case _ _:
189 SCon{Chr{c}, rest}