File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Original file line number Diff line number Diff line change @@ -85,13 +85,13 @@ class WebServer
85
85
void requestAuthentication (HTTPAuthMethod mode = BASIC_AUTH, const char * realm = NULL , const String& authFailMsg = String(" " ) );
86
86
87
87
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
91
91
void addHandler (RequestHandler* handler);
92
92
void serveStatic (const char * uri, fs::FS& fs, const char * path, const char * cache_header = NULL );
93
93
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
95
95
96
96
String uri () { return _currentUri; }
97
97
HTTPMethod method () { return _currentMethod; }
You can’t perform that action at this time.
0 commit comments