Skip to content

Handle raw bytes in http request bodies #139

@BSchneppe

Description

@BSchneppe

Something like this gets serialized to the string 1,2,3

const arr = new Uint8Array(3)
arr[0] = 1;
arr[1] = 2;
arr[2] = 3;
const req: HttpRequest = {
    url: "https://httpbin.io/post",
    method: "POST",
  };
Http.request(req,arr)

We should give more control to the user, allowing to send raw bytes (even non-utf8) if so desired

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