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

Public Member Functions

 StaticRequestHandler (FS &fs, const char *path, const char *uri, const char *cache_header)
 
bool canHandle (HTTPMethod requestMethod, String requestUri) override
 
bool handle (ESP8266WebServer &server, HTTPMethod requestMethod, String requestUri) override
 
- Public Member Functions inherited from RequestHandler
virtual ~RequestHandler ()
 
virtual bool canUpload (String uri)
 
virtual void upload (ESP8266WebServer &server, String requestUri, HTTPUpload &upload)
 
RequestHandlernext ()
 
void next (RequestHandler *r)
 

Static Public Member Functions

static String getContentType (const String &path)
 

Protected Attributes

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

Constructor & Destructor Documentation

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

Member Function Documentation

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

Reimplemented from RequestHandler.

static String StaticRequestHandler::getContentType ( const String &  path)
static
bool StaticRequestHandler::handle ( ESP8266WebServer server,
HTTPMethod  requestMethod,
String  requestUri 
)
overridevirtual

Reimplemented from RequestHandler.

Member Data Documentation

size_t StaticRequestHandler::_baseUriLength
protected
String StaticRequestHandler::_cache_header
protected
FS StaticRequestHandler::_fs
protected
bool StaticRequestHandler::_isFile
protected
String StaticRequestHandler::_path
protected
String StaticRequestHandler::_uri
protected