QuickSander / ArduinoHttpServer

Server side minimalistic HTTP protocol implementation for the Arduino platform.
GNU General Public License v3.0
23 stars 11 forks source link

Feature/add headers #19

Open derpflanz opened 2 years ago

derpflanz commented 2 years ago

This adds the possibility to add maximum 3 extra header fields to the response. This is useful when using the ArduinoHttpServer to serve REST calls and you want the caller to reside somewhere else (like a local HTML file).

Usage:

httpReply.addHeader("Access-Control-Allow-Origin", "*");

Tested and works on the Arduino MKR Wifi

replaysMike commented 6 months ago

bump this would be great to have merged in. Lacking header support is an important oversight of the library