rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
rikitiki::examples::AdvancedModule Struct Reference

#include <advanced.h>

Public Member Functions

void Register (Server &server)
 
void Index (ConnContext &ctx)
 
void makePage (ConnContext &ctx, const std::string &message)
 
void Post (ConnContext &ctx)
 
void Get (ConnContext &ctx)
 
void QueryString (ConnContext &ctx)
 

Detailed Description

This demonstrates some of the advanced features of rikitiki. Namely,

  • Look at '/adv' for an example of ctemplates, plus how you can interrogate ctx.server to figure out all the existing handlers.
  • Two handlers for "/adv/post" which show how to mark a function to response only to a certain response type. Really useful for form pages. Also ctemplates.
  • /qs is query string interrogation. Also demonstrates changing a response type via the '<<' operator

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