22 lines
667 B
C++
22 lines
667 B
C++
#ifndef WebServerData_H
|
|
#define WebServerData_H
|
|
|
|
#include <Ethernet.h>
|
|
#include <Arduino.h>
|
|
|
|
class WebServerData
|
|
{
|
|
public:
|
|
EthernetClient Client;
|
|
String Request;
|
|
bool IsEmpty;
|
|
|
|
WebServerData(EthernetClient client) : Client(client), IsEmpty(true){};
|
|
WebServerData(EthernetClient client, String request) : Client(client), Request(request), IsEmpty(false){};
|
|
String getValue(const String &data, const String &key, char endchar);
|
|
String getValue(const String &data, const String &key);
|
|
String removeAllCharactersAfterEmptySpace(String &data);
|
|
String getVariableName(const String &data, const String &key);
|
|
};
|
|
|
|
#endif // WebServerData_H
|