Commit Graph

169 Commits

Author SHA1 Message Date
Mathieu Carbou
69748e4035 v3.3.13 2024-10-12 21:08:53 +02:00
Mathieu Carbou
2bae2a8086 v3.3.12 2024-10-05 23:16:55 +02:00
Mathieu Carbou
a8a314427b v3.3.11 2024-10-04 13:28:48 +02:00
Mathieu Carbou
8e86039fee v3.3.10 2024-10-03 01:28:28 +02:00
Mathieu Carbou
13cf6e223c v3.3.9 2024-10-03 01:25:29 +02:00
Mathieu Carbou
4843a55e59 AuthenticationMiddleware bug fixes 2024-10-03 01:07:59 +02:00
Mathieu Carbou
6884bb74a6 v3.3.8 2024-10-03 00:47:39 +02:00
Mathieu Carbou
a60e0cac73 v3.3.7 2024-10-01 11:14:21 +02:00
Mathieu Carbou
041565a7d7 Fix memory leak on successive call to setAuthentication
(as reported in https://github.com/tbnobody/OpenDTU/pull/2320)
2024-10-01 11:11:27 +02:00
Mathieu Carbou
6fb4067f8e v3.3.6 2024-10-01 10:58:46 +02:00
Mathieu Carbou
0856ea6a62 v3.3.5 2024-10-01 02:40:58 +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
c295c7b676 v3.3.4 2024-09-30 08:45:53 +02:00
Emil Muratov
cf9ae09db8 add optional responce code to AsyncWebServerRequest::redirect() method
Allows to specify differents redirect codes to use, i.e. 301/302, 307/308
2024-09-30 12:07:45 +09:00
Mathieu Carbou
786f7b924b v3.3.3 2024-09-30 00:53:38 +02:00
Mathieu Carbou
5fbab6ce0c v3.3.2 2024-09-29 23:44:52 +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
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
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
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
7b2c732a3f v3.2.2 2024-09-03 12:12:46 +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
Mathieu Carbou
2fbf37d3bd v3.1.4 2024-08-12 16:39:11 +02:00
Mathieu Carbou
a03a491471 Fix #73 2024-08-12 16:37:13 +02:00
Mathieu Carbou
620a430a64 v3.1.3 2024-08-10 15:38:45 +02:00