Static Public Member Functions |
static int | ServeRedirect (HTTPResponse *response, const string &location) |
static ThreadId | Self () |
Static Public Attributes |
static const char | CONTENT_TYPE_PLAIN [] = "text/plain" |
static const char | CONTENT_TYPE_HTML [] = "text/html" |
static const char | CONTENT_TYPE_GIF [] = "image/gif" |
static const char | CONTENT_TYPE_PNG [] = "image/png" |
static const char | CONTENT_TYPE_CSS [] = "text/css" |
static const char | CONTENT_TYPE_JS [] = "text/javascript" |
Member Function Documentation
void ola::http::HTTPServer::HandleHTTPIO |
( |
| ) |
|
|
inline |
Called when there is HTTP IO activity to deal with. This is a noop as MHD_run is called in UpdateSockets above.
void * ola::http::HTTPServer::Run |
( |
| ) |
|
|
virtual |
int ola::http::HTTPServer::ServeStaticContent |
( |
const string & |
path, |
|
|
const string & |
content_type, |
|
|
HTTPResponse * |
response |
|
) |
| |
Return the contents of a file
void ola::http::HTTPServer::UpdateSockets |
( |
| ) |
|
This is run every loop iteration to update the list of sockets in the SelectServer from MHD.
The documentation for this class was generated from the following files: