sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API
MIT License
11.83k stars 341 forks source link

how to send binary data? #580

Closed uinz closed 2 months ago

uinz commented 2 months ago

Because I need to use protobuf for encoding, I can't seem to find a way to send body other than json.

related #472

sindresorhus commented 2 months ago

You missed this part:

The input and options are the same as fetch, with some exceptions:

Look for the body option.