sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to send binary data?

uinz opened this issue · comments

commented

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

related #472

You missed this part:

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

Look for the body option.