forked from me-no-dev/ESPAsyncWebServer
Template container instead of direct pointer manipulation. (#95)
* using Container instead ofdirect pointers list manipulation * fixed different type of virtual methods. * Fixed typo in conditional * Renamed ListArray to LinkedList * Const reference to String as method parameters to prevent additional copy and memory allocation when String passed by value * fix 'min' redefinition * removed #include <iterator> begin/end methods it's enough for 'for( : )' loop count() renamed to length() spacing fixing * Const reference to String as method parameters to prevent additional copy and memory allocation when String passed by value * Fixed unused params warnings
This commit is contained in:
+4
-4
@@ -9,10 +9,10 @@ class SPIFFSEditor: public AsyncWebHandler {
|
||||
bool _authenticated;
|
||||
uint32_t _startTime;
|
||||
public:
|
||||
SPIFFSEditor(String username=String(), String password=String());
|
||||
bool canHandle(AsyncWebServerRequest *request);
|
||||
void handleRequest(AsyncWebServerRequest *request);
|
||||
void handleUpload(AsyncWebServerRequest *request, String filename, size_t index, uint8_t *data, size_t len, bool final);
|
||||
SPIFFSEditor(const String& username=String(), const String& password=String());
|
||||
virtual bool canHandle(AsyncWebServerRequest *request) override final;
|
||||
virtual void handleRequest(AsyncWebServerRequest *request) override final;
|
||||
virtual void handleUpload(AsyncWebServerRequest *request, const String& filename, size_t index, uint8_t *data, size_t len, bool final) override final;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user