kodi
Classes | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | List of all members
CWebServer Class Reference

Classes

struct  ConnectionHandler
 

Public Member Functions

bool Start (uint16_t port, const std::string &username, const std::string &password)
 
bool Stop ()
 
bool IsStarted ()
 
void SetCredentials (const std::string &username, const std::string &password)
 
void RegisterRequestHandler (IHTTPRequestHandler *handler)
 
void UnregisterRequestHandler (IHTTPRequestHandler *handler)
 

Static Public Member Functions

static bool WebServerSupportsSSL ()
 

Protected Types

typedef struct CWebServer::ConnectionHandler ConnectionHandler
 

Protected Member Functions

virtual void LogRequest (const char *uri) const
 
virtual MHD_RESULT HandlePartialRequest (struct MHD_Connection *connection, ConnectionHandler *connectionHandler, const HTTPRequest &request, const char *upload_data, size_t *upload_data_size, void **con_cls)
 
virtual MHD_RESULT HandleRequest (const std::shared_ptr< IHTTPRequestHandler > &handler)
 
virtual MHD_RESULT FinalizeRequest (const std::shared_ptr< IHTTPRequestHandler > &handler, int responseStatus, struct MHD_Response *response)
 

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