MCPcopy Create free account
hub / github.com/cloudflare/serverless-registry / parseLocation

Function parseLocation

push/index.ts:258–264  ·  view source on GitHub ↗
(location: string)

Source from the content-addressed store, hash-verified

256 }
257
258 function parseLocation(location: string) {
259 if (location.startsWith("/")) {
260 return `${proto}://${imageHost}${location}`;
261 }
262
263 return location;
264 }
265
266 let location = createUploadResponse.headers.get("location") ?? `/v2${imageRepositoryPath}/blobs/uploads/${uploadId}`;
267 const maxToWrite = Math.min(maxChunkLength, totalLayerSize);

Callers 1

pushLayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected