mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 05:57:05 +03:00
alignment with cspot
This commit is contained in:
@@ -53,6 +53,7 @@ struct HTTPResponse {
|
||||
bool useGzip = false;
|
||||
std::string body;
|
||||
std::string contentType;
|
||||
std::vector<std::string> extraHeaders = std::vector<std::string>();
|
||||
std::unique_ptr<ResponseReader> responseReader;
|
||||
};
|
||||
|
||||
|
||||
@@ -62,6 +62,7 @@ namespace bell
|
||||
|
||||
void registerHandler(RequestType requestType, const std::string &, httpHandler);
|
||||
void respond(const HTTPResponse &);
|
||||
void redirectTo(const std::string&, int connectionFd);
|
||||
void publishEvent(std::string eventName, std::string eventData);
|
||||
void closeConnection(int connection);
|
||||
void listen();
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#ifdef ESP_PLATFORM
|
||||
#include <esp_pthread.h>
|
||||
#include <esp_task.h>
|
||||
#include <freertos/FreeRTOS.h>
|
||||
#include <freertos/timers.h>
|
||||
#include <freertos/task.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#elif __APPLE__
|
||||
#include <dispatch/dispatch.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#include <semaphore.h>
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user