MCPcopy Index your code
hub / github.com/fontsource/fontsource / fetch

Function fetch

api/cdn/src/worker.ts:6–21  ·  view source on GitHub ↗
(
		request: Request,
		env: Env,
		ctx: ExecutionContext,
	)

Source from the content-addressed store, hash-verified

4
5export default {
6 async fetch(
7 request: Request,
8 env: Env,
9 ctx: ExecutionContext,
10 ): Promise<Response> {
11 return await router
12 .handle(request, env, ctx)
13 .catch((error_) => {
14 console.error(error_);
15 const resp = error(error_);
16 // Our jsDelivr proxy will fallback to one hour if no cache-control is set
17 resp.headers.set('Cache-Control', 'max-age=0');
18 return resp;
19 })
20 .then(corsify);
21 },
22};

Callers 15

updateZipFunction · 0.70
updateFileFunction · 0.70
updateVariableFileFunction · 0.70
writeDownloadFunction · 0.50
downloadFileFunction · 0.50
downloadVariableFileFunction · 0.50
generateZipFunction · 0.50
getMetadataFunction · 0.50
listBucketFunction · 0.50
abortMultiPartUploadFunction · 0.50
initiateMultipartUploadFunction · 0.50
uploadPartFunction · 0.50

Calls 2

errorMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected