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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

Clock m_clock
HTTPServer m_server
TimeStamp m_start_time

Constructor & Destructor Documentation

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

Create a new OlaHTTPServer.

optionsThe HTTPServerOptions options,
export_mapthe ExportMap to server

Member Function Documentation

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

Setup the OLA HTTP server

true if this worked, false otherwise.

Reimplemented in ola::OladHTTPServer.

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

Register a static file to serve

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