Skip to content

Should setData(data) only support POST request #6

@mingyc

Description

@mingyc

setData(data): Set the current beacon data. The data argument would take the same types as the sendBeacon method’s data parameter. That is, one of ArrayBuffer, ArrayBufferView, Blob, string, FormData, or URLSearchParams.

The current proposal doesn't differentiate between GET/POST for the beacon data. But most of them just don't make sense for GET request in term of url encoding, e.g. Blob, ArrayBuffer, ArrayBufferView, and FormData can contain arbitrary bytes which is difficult to encode in url.

Would it make sense to specify beacon data from setData(data) only works for POST?

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiIssue with API specsquestionFurther information is requested

    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