ESP_IOT v2.5
IOT ESP Coding
StaticRequestHandler Class Reference

#include <RequestHandlersImpl.h>

Inheritance diagram for StaticRequestHandler:
Inheritance graph
Collaboration diagram for StaticRequestHandler:
Collaboration graph

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 (WebServer &server, HTTPMethod requestMethod, String requestUri) 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)
 

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
 

Detailed Description

Definition at line 57 of file RequestHandlersImpl.h.

Constructor & Destructor Documentation

◆ StaticRequestHandler()

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

Definition at line 59 of file RequestHandlersImpl.h.

Member Function Documentation

◆ canHandle()

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

Reimplemented from RequestHandler.

Definition at line 70 of file RequestHandlersImpl.h.

Here is the caller graph for this function:

◆ getContentType()

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

Definition at line 119 of file RequestHandlersImpl.h.

Here is the caller graph for this function:

◆ handle()

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

Reimplemented from RequestHandler.

Definition at line 80 of file RequestHandlersImpl.h.

Here is the call graph for this function:

Member Data Documentation

◆ _baseUriLength

size_t StaticRequestHandler::_baseUriLength
protected

Definition at line 150 of file RequestHandlersImpl.h.

◆ _cache_header

String StaticRequestHandler::_cache_header
protected

Definition at line 148 of file RequestHandlersImpl.h.

◆ _fs

FS StaticRequestHandler::_fs
protected

Definition at line 145 of file RequestHandlersImpl.h.

◆ _isFile

bool StaticRequestHandler::_isFile
protected

Definition at line 149 of file RequestHandlersImpl.h.

◆ _path

String StaticRequestHandler::_path
protected

Definition at line 147 of file RequestHandlersImpl.h.

◆ _uri

String StaticRequestHandler::_uri
protected

Definition at line 146 of file RequestHandlersImpl.h.


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