ArduinoHttpClient
ArduinoHttpClient copied to clipboard
Support additional headers in WebSocketClient
Allows users of this library to add headers to the opening WebSocket request.
Example usage:
char* socketHeaders[2][2];
socketHeaders[0][0] = "Cookie";
socketHeaders[0][1] = "mycookie=withValue";
socketHeaders[1][0] = "Origin";
socketHeaders[1][1] = "http://www.example.com";
client.begin("/socket", socketHeaders, 2);
Memory usage change @ 4a66056e5ff8115ee99e21133442efae21e85a82
| Board | flash | % | RAM for global variables | % |
|---|---|---|---|---|
| arduino:samd:mkr1000 | :small_red_triangle: 0 - +40 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
Click for full report table
| Board | examples/BasicAuthGet flash |
% | examples/BasicAuthGet RAM for global variables |
% | examples/CustomHeader flash |
% | examples/CustomHeader RAM for global variables |
% | examples/DweetGet flash |
% | examples/DweetGet RAM for global variables |
% | examples/DweetPost flash |
% | examples/DweetPost RAM for global variables |
% | examples/HueBlink flash |
% | examples/HueBlink RAM for global variables |
% | examples/PostWithHeaders flash |
% | examples/PostWithHeaders RAM for global variables |
% | examples/SimpleDelete flash |
% | examples/SimpleDelete RAM for global variables |
% | examples/SimpleGet flash |
% | examples/SimpleGet RAM for global variables |
% | examples/SimpleHttpExample flash |
% | examples/SimpleHttpExample RAM for global variables |
% | examples/SimplePost flash |
% | examples/SimplePost RAM for global variables |
% | examples/SimplePut flash |
% | examples/SimplePut RAM for global variables |
% | examples/SimpleWebSocket flash |
% | examples/SimpleWebSocket RAM for global variables |
% |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| arduino:samd:mkr1000 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 40 | 0.02 | 0 | 0.0 |
Click for full report CSV
Board,examples/BasicAuthGet<br>flash,%,examples/BasicAuthGet<br>RAM for global variables,%,examples/CustomHeader<br>flash,%,examples/CustomHeader<br>RAM for global variables,%,examples/DweetGet<br>flash,%,examples/DweetGet<br>RAM for global variables,%,examples/DweetPost<br>flash,%,examples/DweetPost<br>RAM for global variables,%,examples/HueBlink<br>flash,%,examples/HueBlink<br>RAM for global variables,%,examples/PostWithHeaders<br>flash,%,examples/PostWithHeaders<br>RAM for global variables,%,examples/SimpleDelete<br>flash,%,examples/SimpleDelete<br>RAM for global variables,%,examples/SimpleGet<br>flash,%,examples/SimpleGet<br>RAM for global variables,%,examples/SimpleHttpExample<br>flash,%,examples/SimpleHttpExample<br>RAM for global variables,%,examples/SimplePost<br>flash,%,examples/SimplePost<br>RAM for global variables,%,examples/SimplePut<br>flash,%,examples/SimplePut<br>RAM for global variables,%,examples/SimpleWebSocket<br>flash,%,examples/SimpleWebSocket<br>RAM for global variables,%
arduino:samd:mkr1000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,40,0.02,0,0.0
Memory usage change @ a142ab269963134377a638e669ee54bd649b856f
| Board | flash | % | RAM for global variables | % |
|---|---|---|---|---|
| arduino:samd:mkr1000 | :small_red_triangle: 0 - +40 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
Click for full report table
| Board | examples/BasicAuthGet flash |
% | examples/BasicAuthGet RAM for global variables |
% | examples/CustomHeader flash |
% | examples/CustomHeader RAM for global variables |
% | examples/DweetGet flash |
% | examples/DweetGet RAM for global variables |
% | examples/DweetPost flash |
% | examples/DweetPost RAM for global variables |
% | examples/HueBlink flash |
% | examples/HueBlink RAM for global variables |
% | examples/PostWithHeaders flash |
% | examples/PostWithHeaders RAM for global variables |
% | examples/SimpleDelete flash |
% | examples/SimpleDelete RAM for global variables |
% | examples/SimpleGet flash |
% | examples/SimpleGet RAM for global variables |
% | examples/SimpleHttpExample flash |
% | examples/SimpleHttpExample RAM for global variables |
% | examples/SimplePost flash |
% | examples/SimplePost RAM for global variables |
% | examples/SimplePut flash |
% | examples/SimplePut RAM for global variables |
% | examples/SimpleWebSocket flash |
% | examples/SimpleWebSocket RAM for global variables |
% |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| arduino:samd:mkr1000 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 40 | 0.02 | 0 | 0.0 |
Click for full report CSV
Board,examples/BasicAuthGet<br>flash,%,examples/BasicAuthGet<br>RAM for global variables,%,examples/CustomHeader<br>flash,%,examples/CustomHeader<br>RAM for global variables,%,examples/DweetGet<br>flash,%,examples/DweetGet<br>RAM for global variables,%,examples/DweetPost<br>flash,%,examples/DweetPost<br>RAM for global variables,%,examples/HueBlink<br>flash,%,examples/HueBlink<br>RAM for global variables,%,examples/PostWithHeaders<br>flash,%,examples/PostWithHeaders<br>RAM for global variables,%,examples/SimpleDelete<br>flash,%,examples/SimpleDelete<br>RAM for global variables,%,examples/SimpleGet<br>flash,%,examples/SimpleGet<br>RAM for global variables,%,examples/SimpleHttpExample<br>flash,%,examples/SimpleHttpExample<br>RAM for global variables,%,examples/SimplePost<br>flash,%,examples/SimplePost<br>RAM for global variables,%,examples/SimplePut<br>flash,%,examples/SimplePut<br>RAM for global variables,%,examples/SimpleWebSocket<br>flash,%,examples/SimpleWebSocket<br>RAM for global variables,%
arduino:samd:mkr1000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,40,0.02,0,0.0
Hello, can you merge this ? I need additional headers in WebSocketClient :p
Memory usage change @ a8ccd1521bf97d7b6688f6dab55644b168c8dd1c
| Board | flash | % | RAM for global variables | % |
|---|---|---|---|---|
| arduino:samd:mkr1000 | :small_red_triangle: 0 - +40 | 0.0 - +0.02 | 0 - 0 | 0.0 - 0.0 |
Click for full report table
| Board | examples/BasicAuthGet flash |
% | examples/BasicAuthGet RAM for global variables |
% | examples/CustomHeader flash |
% | examples/CustomHeader RAM for global variables |
% | examples/DweetGet flash |
% | examples/DweetGet RAM for global variables |
% | examples/DweetPost flash |
% | examples/DweetPost RAM for global variables |
% | examples/HueBlink flash |
% | examples/HueBlink RAM for global variables |
% | examples/PostWithHeaders flash |
% | examples/PostWithHeaders RAM for global variables |
% | examples/SimpleDelete flash |
% | examples/SimpleDelete RAM for global variables |
% | examples/SimpleGet flash |
% | examples/SimpleGet RAM for global variables |
% | examples/SimpleHttpExample flash |
% | examples/SimpleHttpExample RAM for global variables |
% | examples/SimplePost flash |
% | examples/SimplePost RAM for global variables |
% | examples/SimplePut flash |
% | examples/SimplePut RAM for global variables |
% | examples/SimpleWebSocket flash |
% | examples/SimpleWebSocket RAM for global variables |
% |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| arduino:samd:mkr1000 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 0 | 0.0 | 40 | 0.02 | 0 | 0.0 |
Click for full report CSV
Board,examples/BasicAuthGet<br>flash,%,examples/BasicAuthGet<br>RAM for global variables,%,examples/CustomHeader<br>flash,%,examples/CustomHeader<br>RAM for global variables,%,examples/DweetGet<br>flash,%,examples/DweetGet<br>RAM for global variables,%,examples/DweetPost<br>flash,%,examples/DweetPost<br>RAM for global variables,%,examples/HueBlink<br>flash,%,examples/HueBlink<br>RAM for global variables,%,examples/PostWithHeaders<br>flash,%,examples/PostWithHeaders<br>RAM for global variables,%,examples/SimpleDelete<br>flash,%,examples/SimpleDelete<br>RAM for global variables,%,examples/SimpleGet<br>flash,%,examples/SimpleGet<br>RAM for global variables,%,examples/SimpleHttpExample<br>flash,%,examples/SimpleHttpExample<br>RAM for global variables,%,examples/SimplePost<br>flash,%,examples/SimplePost<br>RAM for global variables,%,examples/SimplePut<br>flash,%,examples/SimplePut<br>RAM for global variables,%,examples/SimpleWebSocket<br>flash,%,examples/SimpleWebSocket<br>RAM for global variables,%
arduino:samd:mkr1000,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,40,0.02,0,0.0