rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
rikitiki::Server Class Reference

The main interface file between modules and a given server Server is the rikitiki component that stores handlers and interfaces with the choosen server module to fire them off. It also is the object that provides information about the current server – IP, Port, etc. More...

#include <server.h>

Inheritance diagram for rikitiki::Server:
rikitiki::apache::ApacheServer rikitiki::mongoose::MongooseServer

Public Types

typedef bool(* handle_t )(ConnContext &ctx)
 

Public Member Functions

void AddPreprocessor (rikitiki::ctemplates::TemplatePreprocessor *)
 
bool Handle (ConnContext &ctx)
 
void AddHandler (Handler &handler)
 
void AddHandler (Handler *handler)
 
void AddHandler (handle_t handler)
 
template<typename T >
void Register (T &t)
 

Public Attributes

std::vector< Handler * > handlers
 
std::vector
< ctemplates::TemplatePreprocessor * > 
templatePreprocessors
 

Detailed Description

The main interface file between modules and a given server Server is the rikitiki component that stores handlers and interfaces with the choosen server module to fire them off. It also is the object that provides information about the current server – IP, Port, etc.


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