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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-extract-cookie-value-parsing-workflow-guide.md | A 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.text | A 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.text | A 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-.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
