cloudflare · Cloudflare Workers Docs
Workers Streams
Explains how to use the web standard Streams API to process large request or response bodies incrementally to stay within memory limits.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Streams
Explains how to use the web standard Streams API to process large request or response bodies incrementally to stay within memory limits.
When To Use
Use when you need to process large request or response bodies without exceeding memory limits or when you need to modify data as it is being streamed through a Worker.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-streams-workflow-guide.md | A technical overview of the web standard Streams API implementation within the Cloudflare Workers runtime, including ReadableStream, TransformStream, and WritableStream interfaces. | Questions about a technical overview of the web standard Streams API implementation within the Cloudflare Workers runtime, including... |
examples/workers-runtime-apis-streams-cloudflare-workers-streams-fetch-response-b.text | A JavaScript example demonstrating how to stream a response body from an origin server using the Workers Streams API. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to stream a response body from an origin server using the Workers Streams API. |
examples/workers-runtime-apis-streams-cloudflare-workers-streams-fetch-and-stream.text | A JavaScript example demonstrating how to fetch a response from an origin server and stream its body using the Workers Streams API. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to fetch a response from an origin server and stream its body using the Worker... |
examples/workers-runtime-apis-streams-cloudflare-workers-streams-transformstream-.text | A JavaScript example demonstrating how to use TransformStream to modify a response body fetched from an origin server within a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use TransformStream to modify a response body fetched from an origin server... |
examples/workers-runtime-apis-streams-cloudflare-workers-streams-transformstream--2.text | A JavaScript example demonstrating how to use TransformStream to modify data chunks while fetching and streaming a response in a Cloudflare Worker. | Exact payloads, commands, or snippets shown in A JavaScript example demonstrating how to use TransformStream to modify data chunks while fetching and streaming a re... |
What This Skill Covers
- The Streams API ↗ is a web standard API that allows JavaScript to programmatically access and process streams of data.
- Main sections:
Common issues,Related resources.
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/runtime-apis/streams
