rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
connContext.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 #pragma once
5 #include "../connContext.h"
6 #include "mongoose.h"
7 
8 namespace rikitiki {
9  namespace mongoose {
13  class MongooseConnContext : public ConnContext {
14  mg_connection* conn;
15 
16  protected:
17  virtual void FillPayload();
18  virtual void FillQueryString();
19  virtual void FillRequestMethod();
20  virtual void FillHeaders();
21 
22  public:
23  const mg_request_info& request;
24  virtual const char* URI();
25  MongooseConnContext(const Server* s,
26  mg_connection* c);
27  virtual void writeResponse();
28  };
29 
30  }
31 }