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

Function buildUrl

apps/sim/connectors/s3/s3.ts:258–261  ·  view source on GitHub ↗

* Builds the full request URL from the canonical path and an optional canonical * query string. The path passed here is the same canonical, percent-encoded * string used to compute the SigV4 signature, so the signed URI and the wire * URI are byte-identical.

(ctx: S3Context, encodedPath: string, canonicalQueryString: string)

Source from the content-addressed store, hash-verified

256 * URI are byte-identical.
257 */
258function buildUrl(ctx: S3Context, encodedPath: string, canonicalQueryString: string): string {
259 const base = `${resolveScheme(ctx)}://${resolveHost(ctx)}${encodedPath}`
260 return canonicalQueryString ? `${base}?${canonicalQueryString}` : base
261}
262
263/**
264 * Builds SigV4 request headers for an S3 REST call.

Callers 4

objectToStubFunction · 0.70
listObjectsPageFunction · 0.70
s3.tsFile · 0.70
drainGooglePagedListFunction · 0.50

Calls 2

resolveSchemeFunction · 0.85
resolveHostFunction · 0.70

Tested by

no test coverage detected