Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/skills
/ functions
Functions
13 in github.com/cloudflare/skills
⨍
Functions
13
◇
Types & classes
9
↓ 9 callers
Function
mockFetchOnce
(response: { status?: number; body: unknown })
skills/turnstile-spin/templates/worker/test/unit.test.ts:17
↓ 7 callers
Function
jsonResponse
(body: unknown, status: number, env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:39
↓ 5 callers
Function
logSiteverify
(outcome: 'ok' | 'fail' | 'error', ctx: LogContext)
skills/turnstile-spin/templates/worker/src/observability.ts:17
↓ 4 callers
Function
errorResponse
(code: ErrorCode, durationMs: number, workerVersion: string)
skills/turnstile-spin/templates/worker/src/errors.ts:20
↓ 3 callers
Function
envWith
(secret: string)
skills/turnstile-spin/templates/worker/test/integration.test.ts:35
↓ 2 callers
Function
corsHeaders
(env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:29
↓ 1 callers
Function
fetch
(request: Request, env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:164
↓ 1 callers
Function
fetchWithTimeout
(url: string, body: FormData, timeoutMs: number)
skills/turnstile-spin/templates/worker/src/validate.ts:89
↓ 1 callers
Function
handleHealth
(env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:150
↓ 1 callers
Function
handleSiteverify
(request: Request, env: Env)
skills/turnstile-spin/templates/worker/src/index.ts:81
↓ 1 callers
Function
parseBody
(request: Request)
skills/turnstile-spin/templates/worker/src/index.ts:49
↓ 1 callers
Function
validate
(req: SiteverifyRequest, env: Env, workerVersion: string)
skills/turnstile-spin/templates/worker/src/validate.ts:25
Method
constructor
( public readonly status: number, public readonly code: ErrorCode, message: string, )
skills/turnstile-spin/templates/worker/src/errors.ts:9