* Builds the full request URL from the canonical path and an optional canonical * query string. The path passed here is the same canonical, percent-encoded * string used to compute the SigV4 signature, so the signed URI and the wire * URI are byte-identical.
(ctx: S3Context, encodedPath: string, canonicalQueryString: string)
| 256 | * URI are byte-identical. |
| 257 | */ |
| 258 | function buildUrl(ctx: S3Context, encodedPath: string, canonicalQueryString: string): string { |
| 259 | const base = `${resolveScheme(ctx)}://${resolveHost(ctx)}${encodedPath}` |
| 260 | return canonicalQueryString ? `${base}?${canonicalQueryString}` : base |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Builds SigV4 request headers for an S3 REST call. |
no test coverage detected