获取请求的 Host
(bucket: string)
| 155 | |
| 156 | /** 获取请求的 Host */ |
| 157 | private getHost(bucket: string): string { |
| 158 | const { hostname, port } = this.parsedEndpoint; |
| 159 | const hostWithPort = port ? `${hostname}:${port}` : hostname; |
| 160 | if (this.config.forcePathStyle) { |
| 161 | return hostWithPort; |
| 162 | } |
| 163 | return `${bucket}.${hostWithPort}`; |
| 164 | } |
| 165 | |
| 166 | /** 获取签名用的 Canonical URI */ |
| 167 | private getCanonicalUri(bucket: string, key?: string): string { |
no outgoing calls
no test coverage detected