WebStaticRequestProcessor Class Reference
Static file web processor. More...
#include <static_processor.h>
Inheritance diagram for WebStaticRequestProcessor:

Public Member Functions | |
| WebStaticRequestProcessor (const char *baseurl, const char *htdocs_dir, fawkes::Logger *logger) | |
| Constructor. | |
| virtual | ~WebStaticRequestProcessor () |
| Destructor. | |
| virtual WebReply * | process_request (const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **session_data) |
| Process a request. | |
Detailed Description
Static file web processor.This processor provides access to static files.
Definition at line 33 of file static_processor.h.
Constructor & Destructor Documentation
| WebStaticRequestProcessor::WebStaticRequestProcessor | ( | const char * | baseurl, | |
| const char * | htdocs_dir, | |||
| fawkes::Logger * | logger | |||
| ) |
Constructor.
- Parameters:
-
baseurl Base URL where the static processor is mounted htdocs_dir directory in the file system where to look for static files logger logger
Definition at line 48 of file static_processor.cpp.
| WebStaticRequestProcessor::~WebStaticRequestProcessor | ( | ) | [virtual] |
Member Function Documentation
| WebReply * WebStaticRequestProcessor::process_request | ( | const char * | url, | |
| const char * | method, | |||
| const char * | version, | |||
| const char * | upload_data, | |||
| size_t * | upload_data_size, | |||
| void ** | session_data | |||
| ) | [virtual] |
Process a request.
- Parameters:
-
url URL, may contain escape sequences method HTTP method version HTTP version upload_data uploaded data upload_data_size size of upload_data parameter session_data session data pointer
- Returns:
- a WebReply instance, more specifically either a DynamicWebReply or a StaticWebReply that is sent as reply, or NULL to cause a 404 (not found) error.
Implements WebRequestProcessor.
Definition at line 69 of file static_processor.cpp.
References fawkes::Exception::begin(), WebReply::HTTP_FORBIDDEN, WebReply::HTTP_INTERNAL_SERVER_ERROR, WebReply::HTTP_NOT_FOUND, and fawkes::Logger::log_error().
The documentation for this class was generated from the following files:
- src/plugins/webview/static_processor.h
- src/plugins/webview/static_processor.cpp

