Revert "Update deprecation notices"

This reverts commit 7b560ec7c5.
This commit is contained in:
Mathieu Carbou
2024-09-10 00:05:07 +02:00
parent 7b560ec7c5
commit 88cb670d93

View File

@@ -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(...). Will be removed in version 4.")]]
[[deprecated("Replaced by send(...)")]]
#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(...). Will be removed in version 4.")]]
[[deprecated("Replaced by send(...)")]]
#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(...). Will be removed in version 4.")]]
[[deprecated("Replaced by beginResponse(...)")]]
#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(...). Will be removed in version 4.")]]
[[deprecated("Replaced by beginResponse(...)")]]
#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). Will be removed in version 4.")]]
[[deprecated("Use instead: _assembleHead(String& buffer, uint8_t version)")]]
#endif
String _assembleHead(uint8_t version) {
String buffer;