* Add HTTP-parser lib to support ESP32 WebServer * Add WebServer from ESP32. Only supports HTTP * Separate HTTP server from the network server Instead of managing the WiFiServer/WiFiServerSecure in the same object as the HTTP handling, split them into separate objects. This lets HTTP and HTTPS servers work without templates or duplicating code. The HTTP block just gets a `WiFiClient*` and works with that to only do HTTP processing, while the upper object handles the appropriate server and client types. * Add HTTPS server * Clean up some THandlerFunction refs * Refactor into a template-ized WebServer/WebServerSecure * Add DNSServer examples which need WebServer * Fix CoreMutex infinite recursion crash Core could crash while Serial debugging was going on and prints were happening from LWIP/IRQ land and the main app. * Add HTTPUpdateServer(Secure) * Add MIME include, optimize WebServer::send(size,len) When send()ing a large buffer, the WebServer::send() call would actually convert that buffer into a String (i.e. duplicate it, and potential issues with embedded \0s in binary data). Make a simple override to send(size, len) to allow writing from the source buffer instead. * Fix WiFiClient::send(Stream), add FSBrowser example
40 lines
823 B
Plaintext
40 lines
823 B
Plaintext
#######################################
|
|
# Syntax Coloring Map For Ultrasound
|
|
#######################################
|
|
|
|
#######################################
|
|
# Datatypes (KEYWORD1)
|
|
#######################################
|
|
|
|
WebServer KEYWORD1
|
|
WebServerSecure KEYWORD1
|
|
HTTPServer KEYWORD1
|
|
HTTPMethod KEYWORD1
|
|
|
|
#######################################
|
|
# Methods and Functions (KEYWORD2)
|
|
#######################################
|
|
|
|
begin KEYWORD2
|
|
handleClient KEYWORD2
|
|
on KEYWORD2
|
|
addHandler KEYWORD2
|
|
uri KEYWORD2
|
|
method KEYWORD2
|
|
client KEYWORD2
|
|
send KEYWORD2
|
|
arg KEYWORD2
|
|
argName KEYWORD2
|
|
args KEYWORD2
|
|
hasArg KEYWORD2
|
|
onNotFound KEYWORD2
|
|
|
|
#######################################
|
|
# Constants (LITERAL1)
|
|
#######################################
|
|
|
|
HTTP_GET LITERAL1
|
|
HTTP_POST LITERAL1
|
|
HTTP_ANY LITERAL1
|
|
CONTENT_LENGTH_UNKNOWN LITERAL1
|