-
Notifications
You must be signed in to change notification settings - Fork 1.2k
code structure #5
Comments
AsyncWebServerHandlerImpl keeps all implementations of the AsyncWebHandler (thus the name) the cpp file has their source. It should not be needed for inclusion unless you extend one of the classes there. They all look to the server as AsyncWebResponse and the server treats them as such (like Print implementations) |
I found it confusing as part (and only part, e.g. not the constructor) of the AsyncStaticWebHandler implementation in turn is in WebHandlers.cpp. Also those are the only two files prefixed with Async. But definitely a minor thing, please feel free to close. |
all headers have Async in their name (apart from the StringArray). Source files do not because they can not be mixed up with other source files (you include the headers and not the source) :) |
Fixed by 40d5d44 I would say- thank you! |
:) |
During debugging I kept being confused by AsyncWebServerHandlerImpl ws WebHandlers, the sooner only containing static and callback handlers. Wouldn't it make sense to move those to the same file?
The text was updated successfully, but these errors were encountered: