You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<Arduino.h>
#include<ESP8266WebServer.h>voidsetup() {
HTTPMethod get = HTTP_GET; // Good
HTTPMethod head = HTTP_HEAD; // Doesn't exist
}
voidloop() {
}
Debug Messages
sketch_aug11a:5:23: error: 'HTTP_HEAD' was not declared in this scope
HTTPMethod head = HTTP_HEAD;
^
Using library ESP8266WebServer at version 1.0 in folder: /home/zakcodes/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WebServer
Using library ESP8266WiFi at version 1.0 in folder: /home/zakcodes/.arduino15/packages/esp8266/hardware/esp8266/2.5.2/libraries/ESP8266WiFi
exit status 1
'HTTP_HEAD' was not declared in this scope
The text was updated successfully, but these errors were encountered:
Basic Infos
Platform
Settings in IDE
Problem Description
The HTTP HEAD method isn't part of the HTTPMethod enum in the ESP8266WebServer library.
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: