Open Lighting Architecture  Latest Git
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
[legend]
Collaboration diagram for ola::http::OlaHTTPServer:
Collaboration graph
[legend]

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
 
ola::ExportMapm_export_map
 
HTTPServer m_server
 
TimeStamp m_start_time
 

Constructor & Destructor Documentation

◆ OlaHTTPServer()

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

Create a new OlaHTTPServer.

Parameters
optionsThe HTTPServerOptions options,
export_mapthe ExportMap to server

Member Function Documentation

◆ Init()

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

Setup the OLA HTTP server

Returns
true if this worked, false otherwise.

Reimplemented in ola::OladHTTPServer.

◆ RegisterFile()

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

Register a static file to serve


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