Use HTTP method table from ESP-IDF's nghttp (#4900)

Fixes: #4884

* Use HTTP method table from ESP-IDF's nghttp
* Parse methods using IDF's HTTP method list
* Make example's loops to allow the CPU to switch tasks
This commit is contained in:
Me No Dev
2021-03-05 13:40:52 +02:00
committed by GitHub
parent dd834b3372
commit f7fc8ab377
11 changed files with 32 additions and 22 deletions

View File

@ -125,6 +125,7 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}
void drawGraph() {

View File

@ -300,4 +300,5 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -70,4 +70,5 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -56,4 +56,5 @@ void setup() {
void loop() {
ArduinoOTA.handle();
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -38,4 +38,5 @@ void setup() {
void loop() {
ArduinoOTA.handle();
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -53,4 +53,5 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -310,4 +310,5 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -129,4 +129,5 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(2);//allow the cpu to switch to other tasks
}

View File

@ -65,5 +65,5 @@ void setup(void) {
void loop(void) {
server.handleClient();
delay(1);
delay(2);//allow the cpu to switch to other tasks
}