MCPcopy Create free account

hub / github.com/cloudflare/skills / functions

Functions13 in github.com/cloudflare/skills

↓ 9 callersFunctionmockFetchOnce
(response: { status?: number; body: unknown })
skills/turnstile-spin/templates/worker/test/unit.test.ts:17
↓ 7 callersFunctionjsonResponse
(body: unknown, status: number, env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:39
↓ 5 callersFunctionlogSiteverify
(outcome: 'ok' | 'fail' | 'error', ctx: LogContext)
skills/turnstile-spin/templates/worker/src/observability.ts:17
↓ 4 callersFunctionerrorResponse
(code: ErrorCode, durationMs: number, workerVersion: string)
skills/turnstile-spin/templates/worker/src/errors.ts:20
↓ 3 callersFunctionenvWith
(secret: string)
skills/turnstile-spin/templates/worker/test/integration.test.ts:35
↓ 2 callersFunctioncorsHeaders
(env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:29
↓ 1 callersFunctionfetch
(request: Request, env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:164
↓ 1 callersFunctionfetchWithTimeout
(url: string, body: FormData, timeoutMs: number)
skills/turnstile-spin/templates/worker/src/validate.ts:89
↓ 1 callersFunctionhandleHealth
(env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:150
↓ 1 callersFunctionhandleSiteverify
(request: Request, env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:81
↓ 1 callersFunctionparseBody
(request: Request)
skills/turnstile-spin/templates/worker/src/index.ts:49
↓ 1 callersFunctionvalidate
(req: SiteverifyRequest, env: Env, workerVersion: string)
skills/turnstile-spin/templates/worker/src/validate.ts:25
Methodconstructor
( public readonly status: number, public readonly code: ErrorCode, message: string, )
skills/turnstile-spin/templates/worker/src/errors.ts:9