Skip to content

Request body readers discard Blob, URLSearchParams and streaming payloads #200

Description

@OskarEichler

The exported Request accepts these BodyInit values, but text/arrayBuffer/bytes currently return empty data for them, and constructing from a standard Request drops its body. The body getter also recreates streams, and mutable buffers can be shared by clones. I propose reusing the response body consumption helper for supported readable bodies, preserving raw FormData for native upload, and validating locked/consumed bodies. I will verify payload fidelity, cloning, bodyUsed, construction from standard Request, and native fetch handoff. Full FormData serialization is not part of this change.

Activity

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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions