From 7b560ec7c50fb7fa5a7108645fa6517d36d2d074 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Mon, 9 Sep 2024 17:10:49 +0200 Subject: [PATCH] Update deprecation notices --- src/ESPAsyncWebServer.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ESPAsyncWebServer.h b/src/ESPAsyncWebServer.h index 39bf285..6cfec33 100644 --- a/src/ESPAsyncWebServer.h +++ b/src/ESPAsyncWebServer.h @@ -336,13 +336,13 @@ class AsyncWebServerRequest { void sendChunked(const String& contentType, AwsResponseFiller callback, AwsTemplateProcessor templateCallback = nullptr) { send(beginChunkedResponse(contentType, callback, templateCallback)); } #ifndef ESP8266 - [[deprecated("Replaced by send(...)")]] + [[deprecated("Replaced by send(...). Will be removed in version 4.")]] #endif void send_P(int code, const String& contentType, const uint8_t* content, size_t len, AwsTemplateProcessor callback = nullptr) { send(code, contentType, content, len, callback); } #ifndef ESP8266 - [[deprecated("Replaced by send(...)")]] + [[deprecated("Replaced by send(...). Will be removed in version 4.")]] #endif void send_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) { send(code, contentType, content, callback); @@ -377,13 +377,13 @@ class AsyncWebServerRequest { AsyncResponseStream* beginResponseStream(const String& contentType, size_t bufferSize = 1460) { return beginResponseStream(contentType.c_str(), bufferSize); } #ifndef ESP8266 - [[deprecated("Replaced by beginResponse(...)")]] + [[deprecated("Replaced by beginResponse(...). Will be removed in version 4.")]] #endif AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, const uint8_t* content, size_t len, AwsTemplateProcessor callback = nullptr) { return beginResponse(code, contentType.c_str(), content, len, callback); } #ifndef ESP8266 - [[deprecated("Replaced by beginResponse(...)")]] + [[deprecated("Replaced by beginResponse(...). Will be removed in version 4.")]] #endif AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) { return beginResponse(code, contentType.c_str(), content, callback); @@ -599,7 +599,7 @@ class AsyncWebServerResponse { virtual const AsyncWebHeader* getHeader(const char* name) const; #ifndef ESP8266 - [[deprecated("Use instead: _assembleHead(String& buffer, uint8_t version)")]] + [[deprecated("Use instead: _assembleHead(String& buffer, uint8_t version). Will be removed in version 4.")]] #endif String _assembleHead(uint8_t version) { String buffer;