WebServer_tng icon indicating copy to clipboard operation
WebServer_tng copied to clipboard

HTTPMethod enum causes conflicts with ESPAsyncWebServer

Open sidoh opened this issue 8 years ago • 0 comments

Thank you very much for porting this to ESP32!

In one of my projects, I'm using ESPAsyncWebServer, which also defines a non-class enum for HTTP_GET, etc. I wanted to use WiFiManager as well, but since that pulls in WebServer, I was getting conflicts for these constants.

I re-defined these constants in WebServer_tng using enum class, which resolved the issue. Changes are here:

https://github.com/sidoh/WebServer_tng/commit/75d264563fa8aeb5381477b91731230bc02082ec

Happy to open a PR, but since this affects consumers (they'd need to reference these constants using the HTTPMethod:: namespace), I figured an issue would be more appropriate.

sidoh avatar Dec 10 '17 21:12 sidoh