MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / getHost

Method getHost

packages/filesystem/s3/client.ts:157–164  ·  view source on GitHub ↗

获取请求的 Host

(bucket: string)

Source from the content-addressed store, hash-verified

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 {

Callers 2

buildUrlMethod · 0.95
signRequestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected