1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-13 05:53:06 +01:00

refactoring: move webserver stuff to own lib

This commit is contained in:
andreas
2021-10-30 14:49:53 +02:00
parent 11c6c78ad6
commit bb80c5f44f
4 changed files with 299 additions and 213 deletions

View File

@@ -76,6 +76,7 @@ class Message{
class RequestMessage : public Message{
protected:
String result;
String contentType;
private:
int len=0;
int consumed=0;
@@ -91,7 +92,8 @@ class RequestMessage : public Message{
handled=true;
}
public:
RequestMessage():Message(){
RequestMessage(String contentType):Message(){
this->contentType=contentType;
}
virtual ~RequestMessage(){
GW_MESSAGE_DEBUG("~RequestMessage %p\n",this)
@@ -108,6 +110,9 @@ class RequestMessage : public Message{
return cplen;
}
bool isHandled(){return handled;}
String getContentType(){
return contentType;
}
};