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

Lines changed: 4 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy