Commit Graph

419 Commits

Author SHA1 Message Date
Mathieu Carbou
786f7b924b v3.3.3 2024-09-30 00:53:38 +02:00
Mathieu Carbou
e75dd5b02d Fix compilation issue with ArduinoJson 5 and 6 (closes #108) 2024-09-30 00:51:36 +02:00
Mathieu Carbou
5fbab6ce0c v3.3.2 2024-09-29 23:44:52 +02:00
Mathieu Carbou
3bd4eb82a4 Fix include directives to make ArduinoJson optional and fix CI 2024-09-29 23:40:00 +02:00
Mathieu Carbou
6a247c1967 Cleanups 2024-09-29 22:57:54 +02:00
Mathieu Carbou
319e10c210 AsyncWebSocketClient: Fix inconsistent queueLen() in relation to canSend() amd queueIsFull() 2024-09-29 22:12:37 +02:00
Mathieu Carbou
b473625d1d Moved implementations in cpp files 2024-09-29 22:05:35 +02:00
Mathieu Carbou
2e65ee60df Fix CORS Middleware 2024-09-25 01:33:22 +02:00
Mathieu Carbou
9bad612a69 Check for null 2024-09-15 11:59:32 +02:00
Mathieu Carbou
74b16d6ed3 v3.3.1 2024-09-15 11:32:54 +02:00
Mathieu Carbou
9e6cc52bbc Fix warning on ESP8266 2024-09-15 11:31:18 +02:00
Mathieu Carbou
b403739985 v3.3.0 2024-09-14 16:43:53 +02:00
Mathieu Carbou
e6aea01dd3 Add Middleware support in ESPAsyncWebServer 2024-09-14 14:17:51 +02:00
Mathieu Carbou
f959bb91dd Fix method overload issue with ESP8266. ESP8266 has to use send_P() and beginResponse_p() variants 2024-09-14 13:06:37 +02:00
Mathieu Carbou
571eac4d00 Support for replacing a response by a new one 2024-09-14 01:09:22 +02:00
Mathieu Carbou
741841a078 not needed to clear response headers: they will be freed once response will be deleted 2024-09-14 00:46:38 +02:00
Mathieu Carbou
4b03e071b4 Exposing new methods:
- sent response from request
- response code
- response headers
And fixed missing response when a handler forget to respond (501)
2024-09-13 23:35:37 +02:00
Mathieu Carbou
4166d9002f Fix header removal logic 2024-09-13 16:46:41 +02:00
Mathieu Carbou
072b7f82b5 Fix last commit 2024-09-12 00:08:01 +02:00
Mathieu Carbou
f7371c870d Code simplification 2024-09-12 00:04:55 +02:00
Mathieu Carbou
e28aa5e3fc #define RESPONSE_STREAM_BUFFER_SIZE 1460 2024-09-11 21:56:23 +02:00
Mathieu Carbou
b4460a2a70 (perf) Remove interesting headers to fasten request processing
All headers are already parsed: interesting headers allowed to cleanup parsed headers to only keep interesting ones during request processing.
Removing "interesting headers" support will keep these parsed headers in heap memory during request processing before being freed at the end of the request.
If you really need to cleanup some headers to get more heap space during request processing, use a middleware and removeHeadersExcept(names) to remove some.
2024-09-11 17:56:25 +02:00
Mathieu Carbou
d5a09d2ee9 (feat) Add support for request attributes
- request->setAttribute(name, val)
- request->hasAttribute(name)
- request->getAttribute(name, defaultValue)
2024-09-11 00:25:35 +02:00
Mathieu Carbou
88cb670d93 Revert "Update deprecation notices"
This reverts commit 7b560ec7c5.
2024-09-10 00:05:07 +02:00
Mathieu Carbou
7b560ec7c5 Update deprecation notices 2024-09-09 17:10:49 +02:00
Mathieu Carbou
3bdd6a9ada Code cleanup 2024-09-08 22:35:01 +02:00
Mathieu Carbou
244e592de3 typos 2024-09-08 12:11:03 +02:00
Mathieu Carbou
d37e050006 Add __attribute__((unused)) 2024-09-06 13:11:00 +02:00
David Refoua
e3813b8747 fix typos 2024-09-05 10:36:27 +03:30
Mathieu Carbou
cec5afbc29 v3.2.4 2024-09-04 23:00:01 +02:00
Mathieu Carbou
dc746aee31 (fix #94) Remove MAX_PRINTF_LEN limitation and fixed wrong usage of vsnprintf 2024-09-04 22:50:56 +02:00
Mathieu Carbou
688ea40f2f moved backported files 2024-09-04 22:50:41 +02:00
Mathieu Carbou
d5eac05df5 Fix warnings 2024-09-04 22:30:21 +02:00
Mathieu Carbou
3e84cf27c2 v3.2.3 2024-09-04 13:45:56 +02:00
Mathieu Carbou
ac748ef491 Bugfix: AsyncEventSource writes multiple events per tcp send, including partial events that straddle buffers; Improvement: don't hold onto event items until ack, immediately remove them from queue
Copy of https://github.com/esphome/ESPAsyncWebServer/pull/41
2024-09-04 13:35:23 +02:00
Mathieu Carbou
675aba89e4 Updated to ack(size_t len, uint32_t time = 0); 2024-09-04 13:06:21 +02:00
Mathieu Carbou
706e5107e0 Revert "Deprecate ack(size_t len, uint32_t time)"
This reverts commit 933aac8d3e.
2024-09-04 12:16:00 +02:00
Mathieu Carbou
933aac8d3e Deprecate ack(size_t len, uint32_t time) 2024-09-04 12:11:11 +02:00
Mathieu Carbou
5f26351296 Add SSE event example 2024-09-04 11:31:52 +02:00
Mathieu Carbou
bea255224e Cleanup unused code 2024-09-03 23:12:30 +02:00
Mathieu Carbou
7b2c732a3f v3.2.2 2024-09-03 12:12:46 +02:00
За Лупой
9c0fb7a98a Fix RFC 7230 violation
See https://github.com/nodejs/node/issues/47528 for more details
See https://github.com/me-no-dev/ESPAsyncWebServer/pull/1301 for original PR from @zalupoi
2024-09-03 12:10:59 +02:00
Mathieu Carbou
0f71c519a7 v3.2.1 2024-09-03 11:48:19 +02:00
Mathieu Carbou
f9cfba3351 Fix header handling versus internal handling of content-type and content-length (Fix #86) 2024-09-02 22:46:33 +02:00
Mathieu Carbou
e9583133ee avoid another redirect 2024-09-02 18:11:53 +02:00
Mathieu Carbou
e719d74e1d v3.2.0 2024-09-01 23:01:15 +02:00
Mathieu CArbou
f0402e5a6e Close #77: Allow modification of hardcoded headers 2024-09-01 22:57:10 +02:00
Mathieu Carbou
dc60ea821f Fix #79: wrong overload leading to ambiguous method call error during compilation 2024-08-31 15:45:23 +02:00
Mathieu Carbou
f9d70ce9c7 v3.1.5 2024-08-16 00:53:34 +02:00
iranl
74647b2c68 Add H2 support 2024-08-16 00:50:47 +02:00