instanceofMA/arduino-fetch

Support Custom Headers

Closed this issue · 3 comments

Hi, are custom headers supported? I tried adding one called "authKey" and got an error 'class Headers' has no member named 'authkey'.

Not yet! But I can add them till the weekend if it's not really urgent?

No rush, I was able to add the header I needed to the library to unblock myself.

I have added support for custom headers using square-bracket notation:

options.headers["authKey"] = "abcdefgh";

Thanks a lot for your feedback!