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
Fix HTTP_ANY macro conflict with Arduino core. Rename the combination
value to HTTP_ALL and make it type-safe as a
WebRequestMethodComposite. Ensure a warning is generated when
conflicts are detected, and add a deprecation alert to our
compatibility HTTP_ANY value.
Co-authored-by: GitHub Copilot <copilot@github.com>
Co-authored-by: mathieucarbou <61346+mathieucarbou@users.noreply.github.com>
#warning HTTP_ANY definition collision detected - AsyncWebServer HTTP_ methods will not be defined in the global namespace. Make sure to use AsyncWebServerMethod::HTTP_ALL instead, and define ASYNCWEBSERVER_NO_GLOBAL_HTTP_METHODS to disable this warning.
79
+
#defineASYNCWEBSERVER_NO_GLOBAL_HTTP_METHODS
80
+
#endif
81
+
69
82
classAsyncWebServer;
70
83
classAsyncWebServerRequest;
71
84
classAsyncWebServerResponse;
@@ -82,29 +95,40 @@ class AsyncMiddlewareChain;
82
95
namespaceAsyncWebRequestMethod {
83
96
// The long name here is because we sometimes include this in the global namespace
0 commit comments