Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ola::http::OlaHTTPServer Class Reference
Inheritance diagram for ola::http::OlaHTTPServer:
ola::OladHTTPServer

Public Member Functions

 OlaHTTPServer (const HTTPServer::HTTPServerOptions &options, ExportMap *export_map)
virtual bool Init ()
bool Start ()
void Stop ()

Protected Member Functions

void RegisterFile (const string &file, const string &content_type)

Protected Attributes

Clock m_clock
ExportMapm_export_map
HTTPServer m_server
TimeStamp m_start_time

Constructor & Destructor Documentation

ola::http::OlaHTTPServer::OlaHTTPServer ( const HTTPServer::HTTPServerOptions options,
ExportMap export_map 
)

Create a new OlaHTTPServer.

Parameters
optionsThe HTTPServerOptions options,
export_mapthe ExportMap to server

Member Function Documentation

bool ola::http::OlaHTTPServer::Init ( )
virtual

Setup the OLA HTTP server

Returns
true if this worked, false otherwise.

Reimplemented in ola::OladHTTPServer.

void ola::http::OlaHTTPServer::RegisterFile ( const string &  file,
const string &  content_type 
)
inlineprotected

Register a static file to serve


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