Skip to content

Request is missing Body methods #5321

@Monti-27

Description

@Monti-27

Request on current main does not expose the Body mixin.

const r = new Request("http://example.com", { method: "POST", body: "x" });
console.log(typeof r.text, typeof r.json, typeof r.bytes, typeof r.bodyUsed);

Current Boa:

  • undefined undefined undefined undefined

Expected:

  • function function function boolean

The Fetch spec says Request includes Body, so this should expose the body-reading methods and bodyUsed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions