Skip to content

Class StaticRequestHandler

ClassList > StaticRequestHandler

Inherits the following classes: RequestHandler

Public Functions

Type Name
StaticRequestHandler (FS & fs, const char * path, const char * uri, const char * cache_header)
virtual bool canHandle (HTTPMethod requestMethod, String requestUri) override
virtual bool handle (WebServer & server, HTTPMethod requestMethod, String requestUri) override

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 ()

Public Static Functions

Type Name
String getContentType (const String & path)

Protected Attributes

Type Name
size_t _baseUriLength
String _cache_header
FS _fs
bool _isFile
String _path
String _uri

Protected Attributes inherited from RequestHandler

See RequestHandler

Type Name
std::vector< String > pathArgs

Public Functions Documentation

function StaticRequestHandler

inline StaticRequestHandler::StaticRequestHandler (
    FS & fs,
    const char * path,
    const char * uri,
    const char * cache_header
) 

function canHandle

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

Implements RequestHandler::canHandle

function handle

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

Implements RequestHandler::handle

Public Static Functions Documentation

function getContentType

static inline String StaticRequestHandler::getContentType (
    const String & path
) 

Protected Attributes Documentation

variable _baseUriLength

size_t StaticRequestHandler::_baseUriLength;

variable _cache_header

String StaticRequestHandler::_cache_header;

variable _fs

FS StaticRequestHandler::_fs;

variable _isFile

bool StaticRequestHandler::_isFile;

variable _path

String StaticRequestHandler::_path;

variable _uri

String StaticRequestHandler::_uri;

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