2022-07-15 18:05:58 +02:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2022-06-15 23:46:22 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <ESPAsyncWebServer.h>
|
2024-01-20 02:00:22 +01:00
|
|
|
#include <TaskSchedulerDeclarations.h>
|
2022-06-15 23:46:22 +02:00
|
|
|
|
|
|
|
|
class WebApiWebappClass {
|
|
|
|
|
public:
|
2024-01-20 02:00:22 +01:00
|
|
|
void init(AsyncWebServer& server, Scheduler& scheduler);
|
2022-06-15 23:46:22 +02:00
|
|
|
|
|
|
|
|
private:
|
2025-02-07 22:57:01 +01:00
|
|
|
void responseBinaryDataWithETagCache(AsyncWebServerRequest* request, const String& contentType, const String& contentEncoding, const uint8_t* content, size_t len);
|
2024-01-20 02:00:22 +01:00
|
|
|
};
|