* Builds the canonical (sorted, percent-encoded) query string for a * ListObjectsV2 request. Keys are sorted lexicographically after encoding and * each name/value pair is encoded individually.
(params: Record<string, string>)
| 336 | * each name/value pair is encoded individually. |
| 337 | */ |
| 338 | function buildListQueryString(params: Record<string, string>): string { |
| 339 | return Object.keys(params) |
| 340 | .sort() |
| 341 | .map((key) => `${encodeQueryValue(key)}=${encodeQueryValue(params[key])}`) |
| 342 | .join('&') |
| 343 | } |
| 344 | |
| 345 | /** |
| 346 | * Decodes XML entities found in S3 response text values. `&` is decoded |
no test coverage detected