mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
@ -71,6 +71,7 @@ ESP8266WebServer::~ESP8266WebServer() {
|
||||
delete handler;
|
||||
handler = next;
|
||||
}
|
||||
close();
|
||||
}
|
||||
|
||||
void ESP8266WebServer::begin() {
|
||||
@ -173,6 +174,14 @@ void ESP8266WebServer::handleClient() {
|
||||
_handleRequest();
|
||||
}
|
||||
|
||||
void ESP8266WebServer::close() {
|
||||
_server.close();
|
||||
}
|
||||
|
||||
void ESP8266WebServer::stop() {
|
||||
close();
|
||||
}
|
||||
|
||||
void ESP8266WebServer::sendHeader(const String& name, const String& value, bool first) {
|
||||
String headerLine = name;
|
||||
headerLine += ": ";
|
||||
|
@ -66,6 +66,9 @@ public:
|
||||
void begin();
|
||||
void handleClient();
|
||||
|
||||
void close();
|
||||
void stop();
|
||||
|
||||
bool authenticate(const char * username, const char * password);
|
||||
void requestAuthentication();
|
||||
|
||||
|
Reference in New Issue
Block a user