* Returns the SigV4 canonical Host header for the request. For AWS this is the * virtual-hosted-style host; for a custom endpoint it is the endpoint host * (with port when non-default).
(ctx: S3Context)
| 215 | * (with port when non-default). |
| 216 | */ |
| 217 | function resolveHost(ctx: S3Context): string { |
| 218 | return ctx.endpoint ? ctx.endpoint.hostHeader : `${ctx.bucket}.s3.${ctx.region}.amazonaws.com` |
| 219 | } |
| 220 | |
| 221 | /** |
| 222 | * Returns the request scheme: always `https` for AWS, or the endpoint scheme |
no outgoing calls
no test coverage detected