ESP8266
Public Member Functions | Protected Attributes | List of all members
FunctionRequestHandler Class Reference
Inheritance diagram for FunctionRequestHandler:
RequestHandler

Public Member Functions

 FunctionRequestHandler (ESP8266WebServer::THandlerFunction fn, ESP8266WebServer::THandlerFunction ufn, const char *uri, HTTPMethod method)
 
bool canHandle (HTTPMethod requestMethod, String requestUri) override
 
bool canUpload (String requestUri) override
 
bool handle (ESP8266WebServer &server, HTTPMethod requestMethod, String requestUri) override
 
void upload (ESP8266WebServer &server, String requestUri, HTTPUpload &upload) override
 
- Public Member Functions inherited from RequestHandler
virtual ~RequestHandler ()
 
RequestHandlernext ()
 
void next (RequestHandler *r)
 

Protected Attributes

ESP8266WebServer::THandlerFunction _fn
 
ESP8266WebServer::THandlerFunction _ufn
 
String _uri
 
HTTPMethod _method
 

Constructor & Destructor Documentation

FunctionRequestHandler::FunctionRequestHandler ( ESP8266WebServer::THandlerFunction  fn,
ESP8266WebServer::THandlerFunction  ufn,
const char *  uri,
HTTPMethod  method 
)

Member Function Documentation

bool FunctionRequestHandler::canHandle ( HTTPMethod  requestMethod,
String  requestUri 
)
overridevirtual

Reimplemented from RequestHandler.

bool FunctionRequestHandler::canUpload ( String  requestUri)
overridevirtual

Reimplemented from RequestHandler.

bool FunctionRequestHandler::handle ( ESP8266WebServer server,
HTTPMethod  requestMethod,
String  requestUri 
)
overridevirtual

Reimplemented from RequestHandler.

void FunctionRequestHandler::upload ( ESP8266WebServer server,
String  requestUri,
HTTPUpload upload 
)
overridevirtual

Reimplemented from RequestHandler.

Member Data Documentation

ESP8266WebServer::THandlerFunction FunctionRequestHandler::_fn
protected
HTTPMethod FunctionRequestHandler::_method
protected
ESP8266WebServer::THandlerFunction FunctionRequestHandler::_ufn
protected
String FunctionRequestHandler::_uri
protected