* Returns the request scheme: always `https` for AWS, or the endpoint scheme * (which may be `http` for local MinIO) for a custom endpoint.
(ctx: S3Context)
| 223 | * (which may be `http` for local MinIO) for a custom endpoint. |
| 224 | */ |
| 225 | function resolveScheme(ctx: S3Context): string { |
| 226 | return ctx.endpoint ? ctx.endpoint.scheme : 'https' |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | * Builds the canonical URI for an object key. |