134 Commits

Author SHA1 Message Date
Mathieu Carbou
7f35106299 Prepare move to https://github.com/ESP32Async/ESPAsyncWebServer 2025-01-20 16:07:01 +01:00
Mathieu Carbou
21323aa46f Breaking: Renamed Middleware classes to not conflict with Arduino Core 3.1.1 which now has Middleware support 2025-01-09 15:31:38 +01:00
Mathieu Carbou
55fa42ab1e Added use case for connection reset when https://192.168.4.1:80 is called 2024-12-19 10:51:55 +01:00
Mathieu Carbou
5efe9137f3 Fix CI 2024-12-19 10:15:25 +01:00
Mathieu Carbou
18b3dd9c03 Display heap 2024-12-19 10:05:48 +01:00
Mathieu Carbou
0554cee7a9 Added example to demo that fix #177 fixes issue #176 2024-12-19 09:40:30 +01:00
Mathieu Carbou
753309bca7 mathieucarbou/AsyncTCP @ 3.3.1 2024-12-16 21:39:51 +01:00
Mathieu Carbou
aed6b32bac Updated recommended flags 2024-12-11 11:27:14 +01:00
Mathieu Carbou
359cc6871c update slow example 2024-12-10 21:21:12 +01:00
Mathieu Carbou
25742e1958 updated slow sample 2024-12-10 21:13:45 +01:00
Mathieu Carbou
ee9d406190 Fix 162: closing websocket from ESP32 with Safari crashes the ESP32.
This happens when Safari sends a WS frame with masked bit set and length 2.
2024-12-10 13:38:17 +01:00
Mathieu Carbou
8a7d2d1944 add slow chunk example 2024-12-09 09:18:27 +01:00
vortigont
c8b3b283da Merge branch 'main' into sse_shareddata 2024-12-02 12:25:29 +09:00
Mathieu Carbou
d9041fc9c4 Add example to prevent WS connection if too many clients 2024-11-30 16:07:11 +01:00
Mathieu Carbou
0eba19d8bf Updated example 2024-11-21 00:30:41 +01:00
Mathieu Carbou
29198a2436 Fix sample 2024-11-20 23:18:51 +01:00
Mathieu Carbou
d60573bd4d updated example 2024-11-20 20:41:16 +01:00
Mathieu Carbou
ac2fb65cb5 Add sample 2024-11-20 20:25:44 +01:00
Mathieu Carbou
33611e8c0a Fix samples 2024-11-19 00:18:05 +01:00
Mathieu Carbou
071785ae50 add josn example 2024-11-15 20:06:33 +01:00
Mathieu Carbou
116fe43eec Added chunk response from PROGMEM content example 2024-11-12 10:31:13 +01:00
Emil Muratov
43e0b5c5a6 rework SSE handling
implement AsyncEventSourceMessage using shared std::string container
one message instance could be shared for multiple connected clients

add zero-copy overloads for message queue in AsyncEventSourceClient
message queue for the client consists of possibly shared instances of AsyncEventSourceMessage,
adding a message to the queue won't create deep-copy object

AsyncEventSource will create a single instance of data message and populate connected clients queues with a shared pointer
2024-11-12 15:27:15 +09:00
Mathieu Carbou
29ba81039d Added SSE perf tests 2024-11-12 01:34:12 +01:00
Mathieu Carbou
7cf5de6eed Fix #151: setAuthentication() was not authenticating: the middleware was setup with AUTH_NONE (default) instead of AUTH_DIGEST (to keep backward compatibility) 2024-11-04 14:02:14 +01:00
Mathieu Carbou
4290bb2e4a Fix CI 2024-10-30 10:07:44 +01:00
Mathieu Carbou
5a60a3de6c Added serveStatic example with template 2024-10-30 09:56:37 +01:00
Mathieu Carbou
e0a13c8383 Fix CI 2024-10-23 16:13:13 +02:00
Mathieu Carbou
996a1bffa9 Code cleanup: virtual destructors, hierarchy, AsyncResponseStream, etc 2024-10-23 15:59:50 +02:00
Mathieu Carbou
24cc3deba8 update sample 2024-10-23 11:01:26 +02:00
Mathieu Carbou
5aba428151 Update example 2024-10-16 22:33:10 +02:00
Mathieu Carbou
7923d93336 Added test case 2024-10-16 11:52:34 +02:00
Mathieu Carbou
58c4c64dfd update example 2024-10-15 21:22:52 +02:00
Mathieu Carbou
d6ce30f2b7 update example 2024-10-15 11:22:07 +02:00
Mathieu Carbou
77f90b6407 Added perf tests 2024-10-13 15:45:25 +02:00
Mathieu Carbou
3fbbef4213 Little cleanups and added partition file 2024-10-03 20:49:22 +02:00
Mathieu Carbou
161db0049e Code cleanup 2024-10-03 00:06:56 +02:00
Mathieu Carbou
20a022b3f7 Added chunk example 2024-10-02 10:18:35 +02:00
Mathieu Carbou
a0ff86e76d Fixed const getter which should be non const to access client api 2024-10-01 10:55:14 +02:00
Mathieu Carbou
3e416accbd Complete rework of AuthenticationMiddleware...
- to align methods and enum with PsychicHttp and Arduino WebServer
- to support hash
- to pre-compute base64 / digest hash to speed up requests
Closes #111
2024-10-01 02:37:25 +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
e6aea01dd3 Add Middleware support in ESPAsyncWebServer 2024-09-14 14:17:51 +02:00
Mathieu Carbou
571eac4d00 Support for replacing a response by a new one 2024-09-14 01:09:22 +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
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
dc746aee31 (fix #94) Remove MAX_PRINTF_LEN limitation and fixed wrong usage of vsnprintf 2024-09-04 22:50:56 +02:00
Mathieu Carbou
d5eac05df5 Fix warnings 2024-09-04 22:30:21 +02:00
Mathieu Carbou
4c4c97ecb7 Set delta to 5 ms in example 2024-09-04 12:36:35 +02:00
Mathieu Carbou
d3f99ba2fa update sample 2024-09-04 12:18:27 +02:00
Mathieu Carbou
5f26351296 Add SSE event example 2024-09-04 11:31:52 +02:00