Skip to content

Class FunctionRequestHandler

ClassList > FunctionRequestHandler

Inherits the following classes: RequestHandler

Public Functions

Type Name
FunctionRequestHandler (WebServer::THandlerFunction fn, WebServer::THandlerFunction ufn, const Uri & uri, HTTPMethod method)
virtual bool canHandle (HTTPMethod requestMethod, String requestUri) override
virtual bool canUpload (String requestUri) override
virtual bool handle (WebServer & server, HTTPMethod requestMethod, String requestUri) override
virtual void upload (WebServer & server, String requestUri, HTTPUpload & upload) override
~FunctionRequestHandler ()

Public Functions inherited from RequestHandler

See RequestHandler

Type Name
virtual bool canHandle (HTTPMethod method, String uri)
virtual bool canUpload (String uri)
virtual bool handle (WebServer & server, HTTPMethod requestMethod, String requestUri)
RequestHandler * next ()
void next (RequestHandler * r)
const String & pathArg (unsigned int i)
virtual void upload (WebServer & server, String requestUri, HTTPUpload & upload)
virtual ~RequestHandler ()

Protected Attributes

Type Name
WebServer::THandlerFunction _fn
HTTPMethod _method
WebServer::THandlerFunction _ufn
Uri * _uri

Protected Attributes inherited from RequestHandler

See RequestHandler

Type Name
std::vector< String > pathArgs

Public Functions Documentation

function FunctionRequestHandler

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

function canHandle

inline virtual bool FunctionRequestHandler::canHandle (
    HTTPMethod requestMethod,
    String requestUri
) override

Implements RequestHandler::canHandle

function canUpload

inline virtual bool FunctionRequestHandler::canUpload (
    String requestUri
) override

Implements RequestHandler::canUpload

function handle

inline virtual bool FunctionRequestHandler::handle (
    WebServer & server,
    HTTPMethod requestMethod,
    String requestUri
) override

Implements RequestHandler::handle

function upload

inline virtual void FunctionRequestHandler::upload (
    WebServer & server,
    String requestUri,
    HTTPUpload & upload
) override

Implements RequestHandler::upload

function ~FunctionRequestHandler

inline FunctionRequestHandler::~FunctionRequestHandler () 

Protected Attributes Documentation

variable _fn

WebServer::THandlerFunction FunctionRequestHandler::_fn;

variable _method

HTTPMethod FunctionRequestHandler::_method;

variable _ufn

WebServer::THandlerFunction FunctionRequestHandler::_ufn;

variable _uri

Uri* FunctionRequestHandler::_uri;

The documentation for this class was generated from the following file cores/common/arduino/libraries/ext/WebServer/detail/RequestHandlersImpl.h