Open Lighting Architecture: ola::http::OlaHTTPServer Class Reference

| Open Lighting Architecture 0.10.9

Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ola::http::OlaHTTPServer Class Reference
Inheritance diagram for ola::http::OlaHTTPServer:

## 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::ExportMap * | m_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

  options | The HTTPServerOptions options,
  export_map | the 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:

- include/ola/http/OlaHTTPServer.h
- common/http/OlaHTTPServer.cpp