Skip to content

Support json encoding in addition to multipart/form-data #1

@philippe-git

Description

@philippe-git

buffer-js-request encodes data according to the multipart/form-data type, since that's what most of our current endpoints expect, and it plays well with PHP. For newer endpoints, esp. Node ones, it might make more sense to JSON.stringify() the data object and pass it as a string through settings.body, and JSON.parse() that payload on the server.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions