Created HTTP page processor
This commit is contained in:
26
include/HttpHandler.hpp
Normal file
26
include/HttpHandler.hpp
Normal 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
|
||||
Reference in New Issue
Block a user