|
Fawkes API
Fawkes Development Version
|
#include <>>

Public Member Functions | |
| WebErrorPageReply (Code error_code, const char *format=NULL,...) | |
| Constructor. More... | |
Public Member Functions inherited from fawkes::WebPageReply | |
| WebPageReply (std::string title, std::string page="") | |
| Constructor. More... | |
| virtual const std::string & | body () |
| Get body. More... | |
| virtual std::string::size_type | body_length () |
| Get length of body. More... | |
| virtual void | pack () |
| Pack the data. More... | |
| virtual void | pack (std::string active_baseurl, WebPageHeaderGenerator *headergen, WebPageFooterGenerator *footergen) |
| Pack web page reply. More... | |
| virtual void | set_html_header (std::string h) |
| Set HTML header text. More... | |
| void | set_navbar_enabled (bool enabled) |
| Enable or disable the Fawkes Navigationbar (default enabled) More... | |
| bool | get_navbar_enabled () |
| Is the Fawkes Navigation bar enabled? More... | |
| void | set_footer_enabled (bool enabled) |
| Enable or disable the Fawkes Webview footer (default enabled) More... | |
| bool | get_footer_enabled () |
| Is the Fawkes Webview footer enabled? More... | |
Public Member Functions inherited from fawkes::StaticWebReply | |
| StaticWebReply (Code code, std::string body="") | |
| Constructor. More... | |
| void | append_body (const char *format,...) |
| Append to body. More... | |
| void | append_body (const std::string &s) |
| Append string to body. More... | |
| StaticWebReply & | operator+= (std::string text) |
| Append simple text line. More... | |
Public Member Functions inherited from fawkes::WebReply | |
| WebReply (Code code) | |
| Constructor. More... | |
| virtual | ~WebReply () |
| Destructor. More... | |
| Code | code () const |
| Get response code. More... | |
| void | set_code (Code code) |
| Set response code. More... | |
| void | add_header (const std::string &header, const std::string &content) |
| Add a HTTP header. More... | |
| void | add_header (const std::string &header_string) |
| Add a HTTP header. More... | |
| const HeaderMap & | headers () const |
| get headers. More... | |
| void | set_caching (bool caching) |
| Enable or disable caching for this specific reply. More... | |
| void | set_request (WebRequest *request) |
| Set associated request. More... | |
| WebRequest * | get_request () const |
| Get associated request. More... | |
| void | pack_caching () |
| Called just before the reply is sent. More... | |
Static error page reply. Shows a simple error page based on the given code.
Definition at line 36 of file error_reply.h.
| fawkes::WebErrorPageReply::WebErrorPageReply | ( | Code | code, |
| const char * | format = NULL, |
||
| ... | |||
| ) |
Constructor.
| code | error code, must be a 4xx or 5xx HTTP code |
| format | format for additional error message, use format as known from sprintf. |
Definition at line 48 of file error_reply.cpp.