mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2025-10-01 00:30:54 +02:00
@@ -336,13 +336,13 @@ class AsyncWebServerRequest {
|
|||||||
void sendChunked(const String& contentType, AwsResponseFiller callback, AwsTemplateProcessor templateCallback = nullptr) { send(beginChunkedResponse(contentType, callback, templateCallback)); }
|
void sendChunked(const String& contentType, AwsResponseFiller callback, AwsTemplateProcessor templateCallback = nullptr) { send(beginChunkedResponse(contentType, callback, templateCallback)); }
|
||||||
|
|
||||||
#ifndef ESP8266
|
#ifndef ESP8266
|
||||||
[[deprecated("Replaced by send(...). Will be removed in version 4.")]]
|
[[deprecated("Replaced by send(...)")]]
|
||||||
#endif
|
#endif
|
||||||
void send_P(int code, const String& contentType, const uint8_t* content, size_t len, AwsTemplateProcessor callback = nullptr) {
|
void send_P(int code, const String& contentType, const uint8_t* content, size_t len, AwsTemplateProcessor callback = nullptr) {
|
||||||
send(code, contentType, content, len, callback);
|
send(code, contentType, content, len, callback);
|
||||||
}
|
}
|
||||||
#ifndef ESP8266
|
#ifndef ESP8266
|
||||||
[[deprecated("Replaced by send(...). Will be removed in version 4.")]]
|
[[deprecated("Replaced by send(...)")]]
|
||||||
#endif
|
#endif
|
||||||
void send_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) {
|
void send_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) {
|
||||||
send(code, contentType, content, callback);
|
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); }
|
AsyncResponseStream* beginResponseStream(const String& contentType, size_t bufferSize = 1460) { return beginResponseStream(contentType.c_str(), bufferSize); }
|
||||||
|
|
||||||
#ifndef ESP8266
|
#ifndef ESP8266
|
||||||
[[deprecated("Replaced by beginResponse(...). Will be removed in version 4.")]]
|
[[deprecated("Replaced by beginResponse(...)")]]
|
||||||
#endif
|
#endif
|
||||||
AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, const uint8_t* content, size_t len, AwsTemplateProcessor callback = nullptr) {
|
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);
|
return beginResponse(code, contentType.c_str(), content, len, callback);
|
||||||
}
|
}
|
||||||
#ifndef ESP8266
|
#ifndef ESP8266
|
||||||
[[deprecated("Replaced by beginResponse(...). Will be removed in version 4.")]]
|
[[deprecated("Replaced by beginResponse(...)")]]
|
||||||
#endif
|
#endif
|
||||||
AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) {
|
AsyncWebServerResponse* beginResponse_P(int code, const String& contentType, PGM_P content, AwsTemplateProcessor callback = nullptr) {
|
||||||
return beginResponse(code, contentType.c_str(), content, callback);
|
return beginResponse(code, contentType.c_str(), content, callback);
|
||||||
@@ -599,7 +599,7 @@ class AsyncWebServerResponse {
|
|||||||
virtual const AsyncWebHeader* getHeader(const char* name) const;
|
virtual const AsyncWebHeader* getHeader(const char* name) const;
|
||||||
|
|
||||||
#ifndef ESP8266
|
#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
|
#endif
|
||||||
String _assembleHead(uint8_t version) {
|
String _assembleHead(uint8_t version) {
|
||||||
String buffer;
|
String buffer;
|
||||||
|
Reference in New Issue
Block a user