Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-streams-workflow-guide.mdA 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.textA 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.textA 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-.textA 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.textA 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

  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/streams