Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Cookie parsing

Implementation patterns for extracting specific cookie values from request headers using JavaScript, TypeScript, Python, and the Hono framework.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Cookie parsing

Implementation patterns for extracting specific cookie values from request headers using JavaScript, TypeScript, Python, and the Hono framework.

When To Use

Use when you need to implement logic to retrieve a specific cookie value from an incoming HTTP request within a Cloudflare Worker environment.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-extract-cookie-value-parsing-workflow-guide.mdA JavaScript implementation demonstrating how to extract a specific cookie value from a request header within a Cloudflare Worker.Questions about a JavaScript implementation demonstrating how to extract a specific cookie value from a request header within a Cloud...
examples/workers-examples-extract-cookie-value-parsing-cloudflare-workers-extract.textA JavaScript example demonstrating how to use the cookie library to parse and extract a specific cookie value from a request header within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the cookie library to parse and extract a specific cookie value from a...
examples/workers-examples-extract-cookie-value-parsing-cloudflare-workers-extract-2.textA JavaScript example demonstrating how to use the cookie library to parse and extract a specific cookie value from a request header within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use the cookie library to parse and extract a specific cookie value from a...
examples/workers-examples-extract-cookie-value-parsing-cloudflare-workers-python-.textA Python example demonstrating how to use SimpleCookie to parse and extract a specific cookie value from an incoming request in a Cloudflare Worker.Exact payloads, commands, or snippets shown in A Python example demonstrating how to use SimpleCookie to parse and extract a specific cookie value from an incoming...
examples/workers-examples-extract-cookie-value-parsing-cloudflare-workers-hono-ex.textA JavaScript example using the Hono framework to extract a specific cookie value from a request within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript example using the Hono framework to extract a specific cookie value from a request within a Cloudflare W...

What This Skill Covers

  • Given the cookie name, get the value of a cookie. You can also use cookies for A/B testing.
  • Main sections: Tags.

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/examples/extract-cookie-value