rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
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){
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 }