ESP_IOT v2.5
IOT ESP Coding
FunctionRequestHandler Class Reference

#include <RequestHandlersImpl.h>

Inheritance diagram for FunctionRequestHandler:
Inheritance graph
Collaboration diagram for FunctionRequestHandler:
Collaboration graph

Public Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 7 of file RequestHandlersImpl.h.

Constructor & Destructor Documentation

◆ FunctionRequestHandler()

FunctionRequestHandler::FunctionRequestHandler ( WebServer::THandlerFunction  fn,
WebServer::THandlerFunction  ufn,
const String &  uri,
HTTPMethod  method 
)
inline

Definition at line 9 of file RequestHandlersImpl.h.

Member Function Documentation

◆ canHandle()

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

Reimplemented from RequestHandler.

Definition at line 17 of file RequestHandlersImpl.h.

Here is the caller graph for this function:

◆ canUpload()

bool FunctionRequestHandler::canUpload ( String  requestUri)
inlineoverridevirtual

Reimplemented from RequestHandler.

Definition at line 27 of file RequestHandlersImpl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handle()

bool FunctionRequestHandler::handle ( WebServer server,
HTTPMethod  requestMethod,
String  requestUri 
)
inlineoverridevirtual

Reimplemented from RequestHandler.

Definition at line 34 of file RequestHandlersImpl.h.

Here is the call graph for this function:

◆ upload()

void FunctionRequestHandler::upload ( WebServer server,
String  requestUri,
HTTPUpload upload 
)
inlineoverridevirtual

Reimplemented from RequestHandler.

Definition at line 43 of file RequestHandlersImpl.h.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _fn

WebServer::THandlerFunction FunctionRequestHandler::_fn
protected

Definition at line 51 of file RequestHandlersImpl.h.

◆ _method

HTTPMethod FunctionRequestHandler::_method
protected

Definition at line 54 of file RequestHandlersImpl.h.

◆ _ufn

WebServer::THandlerFunction FunctionRequestHandler::_ufn
protected

Definition at line 52 of file RequestHandlersImpl.h.

◆ _uri

String FunctionRequestHandler::_uri
protected

Definition at line 53 of file RequestHandlersImpl.h.


The documentation for this class was generated from the following file: