def uri.s3
import bend-kit-sigv4@0.11.0.1/sigv4.bend as Sigv4import Base
118# S3 signs the path as sent: each segment re-encoded, nothing removed.
119def uri.s3(empty: Bool, +path: String) -> String:
120 match empty:
121 case True{}:
122 "/"
123 case False{}:
124 String.join(norms(String.split(path, '/')), "/")