Created HTTP page processor

This commit is contained in:
Alex Alvarado
2022-05-17 12:06:50 +02:00
parent 1b3e09ab37
commit 8b01992d20
2 changed files with 118 additions and 0 deletions

26
include/HttpHandler.hpp Normal file
View File

@ -0,0 +1,26 @@
#include <ESPAsyncWebServer.h>
#include "Dictionary.hpp"
#ifndef HttpRequestHandler
#define HttpRequestHandler
typedef Dictionary<String, String> StringDictionary;
typedef Dictionary<String, String (*)(String)> CompilerDictionary;
class PageProcessor
{
private:
String ReadFile(String Path);
public:
PageProcessor();
PageProcessor(String file);
PageProcessor(String file, Dictionary<String, String> *dataset);
Dictionary<String, String>* Dataset;
Dictionary<String, String (*)(String)>* Compilers;
String Parse(String input);
String Execute();
String SourcePath;
};
#endif