alignment with cspot

This commit is contained in:
Philippe G
2021-12-23 11:55:51 -08:00
parent c68919d2d1
commit 662962ddb1
9 changed files with 162 additions and 186 deletions

View File

@@ -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;
};

View File

@@ -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();

View File

@@ -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>

View File

@@ -7,6 +7,7 @@
#elif __APPLE__
#include <dispatch/dispatch.h>
#else
#include <time.h>
#include <semaphore.h>
#endif