#ifndef http_request_h #define http_request_h extern "C" { #include #include } #include using namespace std; class Connection { public: Connection ( void) { oi_socket_init (&socket, 30.0); ebb_request_parser_init (&parser); } ebb_request_parser parser; oi_socket socket; }; class HttpRequest { public: HttpRequest (Connection &c) : connection_(c) { ebb_request_init(&parser_info); } ~HttpRequest() { } const string& Path () { return path; } const string& Referrer () { return referrer; } const string& Host () { return host; } const string& UserAgent () { return user_agent; } string path; string referrer; string host; string user_agent; Connection &connection_; ebb_request parser_info; }; #endif // http_request_h