rikitiki
v0.1.67
Build C++ web server modules that allow easy routing and deployment.
Main Page
Related Pages
Classes
Files
File List
multiType.h
1
/* Copyright (C) 2012-2013 Justin Berger
2
The full license is available in the LICENSE file at the root of this project and is also available at http://opensource.org/licenses/MIT. */
3
4
#include <rikitiki/rikitiki>
5
6
namespace
rikitiki {
7
namespace
examples {
20
struct
MultiTypeModule
{
21
void
Register(
Server
& server){
22
server.AddHandler(
CreateRoute<std::string, float, double, int, char, std::string>
::
23
With(
this
,
"/mt/{string}/{floa}/{doubl}/{in}/{ch}/{string}/matchthistoo"
, &MultiTypeModule::zigzag) );
24
}
25
void
zigzag(
ConnContext
& ctx,
const
std::string& a,
float
b,
double
c,
int
d,
char
e,
const
std::string& f){
26
ctx << a <<
" "
27
<< b <<
" "
28
<< c <<
" "
29
<< d <<
" "
30
<< e <<
" "
31
<< f <<
"\r\n"
;
32
}
33
};
34
}
35
}
include
rikitiki
examples
multiType.h
Generated on Mon Apr 1 2013 18:17:04 for rikitiki by
1.8.3.1