Skip to content

Commit 754cedd

Browse files
added explanatory comments to WebServer.h (espressif#6204)
1 parent 39a2080 commit 754cedd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

libraries/WebServer/src/WebServer.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ class WebServer
8585
void requestAuthentication(HTTPAuthMethod mode = BASIC_AUTH, const char* realm = NULL, const String& authFailMsg = String("") );
8686

8787
typedef std::function<void(void)> THandlerFunction;
88-
void on(const Uri &uri, THandlerFunction handler);
89-
void on(const Uri &uri, HTTPMethod method, THandlerFunction fn);
90-
void on(const Uri &uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn);
88+
void on(const Uri &uri, THandlerFunction fn);
89+
void on(const Uri &uri, HTTPMethod method, THandlerFunction fn);
90+
void on(const Uri &uri, HTTPMethod method, THandlerFunction fn, THandlerFunction ufn); //ufn handles file uploads
9191
void addHandler(RequestHandler* handler);
9292
void serveStatic(const char* uri, fs::FS& fs, const char* path, const char* cache_header = NULL );
9393
void onNotFound(THandlerFunction fn); //called when handler is not assigned
94-
void onFileUpload(THandlerFunction fn); //handle file uploads
94+
void onFileUpload(THandlerFunction ufn); //handle file uploads
9595

9696
String uri() { return _currentUri; }
9797
HTTPMethod method() { return _currentMethod; }

0 commit comments

Comments
 (0)