Skip to content

Stream Cloudflare responses without full buffering #108

Closed

Description

@aram356

Description

Convert core streaming responses into native Cloudflare Worker streams so the adapter does not collect the entire response first.

The Cloudflare converter maps chunks and errors into worker::Response::from_stream; runtime contract coverage exercises streaming route dispatch and conversion.

Steps to reproduce

  1. Inspect the Body::Stream branch of from_core_response.
  2. Inspect the existing Cloudflare runtime contract cases for streaming dispatch and response conversion.

Expected behavior

Core body chunks remain a stream through Cloudflare response conversion.

Impact

This delivers the requested adapter path for large and progressive response bodies.

Proposed fix

Close as completed. Broader lifecycle, cancellation and deployed-provider qualification belong to #436 / #275 rather than reopening this basic stream-adoption scope.

Done when

  • The converter adopts Body::Stream without collecting it.
  • Chunk errors are mapped into Worker errors.
  • Cloudflare runtime contracts cover streaming response dispatch/conversion.

Related

The requested implementation is present on the audited main revision. This audit inspected source and existing coverage; it did not rerun the tests.

Activity

  1. changed the title [-]As a developer I want full streaming support on Cloudflare[/-] [+]Stream Cloudflare responses without full buffering[/+] on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions