Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Handlers

Overview of the different entry point methods available in Cloudflare Workers, including fetch, alarm, email, queue, scheduled, and tail handlers, with specific implementation patterns for both JavaScript and Python.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Handlers

Overview of the different entry point methods available in Cloudflare Workers, including fetch, alarm, email, queue, scheduled, and tail handlers, with specific implementation patterns for both JavaScript and Python.

When To Use

Use when you need to implement specific entry point logic to process HTTP requests, scheduled events, queue messages, or email inputs within a Cloudflare Worker.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-handlers-workflow-guide.mdA documentation guide explaining the different types of event handlers available in Cloudflare Workers, such as fetch and scheduled handlers.Questions about a documentation guide explaining the different types of event handlers available in Cloudflare Workers, such as fetch...
examples/workers-runtime-apis-handlers-cloudflare-workers-fetch-handler.textA text example demonstrating the implementation of the fetch handler within a Cloudflare Workers module export.Exact payloads, commands, or snippets shown in A text example demonstrating the implementation of the fetch handler within a Cloudflare Workers module export.

What This Skill Covers

  • Handlers are methods on Workers that can receive and process external inputs, and can be invoked from outside your Worker. For example, the fetch() handler r...
  • Main sections: Handlers in Python Workers.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/runtime-apis/handlers