MCPcopy Index your code
hub / github.com/simstudioai/sim / resolveHost

Function resolveHost

apps/sim/connectors/s3/s3.ts:217–219  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

215 * (with port when non-default).
216 */
217function 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

Callers 2

buildUrlFunction · 0.70
buildSignedHeadersFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected