# include <iostream>
#endif // DEBUG
-using namespace Plaqui;
+const std::string
+PlaQui::Server::Request::CHARS_DIGIT = "0123456789";
-const std::string Request::CHARS_DIGIT = "0123456789";
+const std::string
+PlaQui::Server::Request::CHARS_LOWALPHA = "abcdefghijklmnopqrstuvwxyz";
-const std::string Request::CHARS_LOWALPHA = "abcdefghijklmnopqrstuvwxyz";
+const std::string
+PlaQui::Server::Request::CHARS_UPALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
-const std::string Request::CHARS_UPALPHA = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+const std::string
+PlaQui::Server::Request::CHARS_ALPHA = CHARS_LOWALPHA + CHARS_UPALPHA;
-const std::string Request::CHARS_ALPHA = CHARS_LOWALPHA + CHARS_UPALPHA;
+const std::string
+PlaQui::Server::Request::CHARS_ALPHANUM = CHARS_DIGIT + CHARS_ALPHA;
-const std::string Request::CHARS_ALPHANUM = CHARS_DIGIT + CHARS_ALPHA;
+const std::string
+PlaQui::Server::Request::CHARS_RESERVED = ";/?:@&=+$,";
-const std::string Request::CHARS_RESERVED = ";/?:@&=+$,";
+const std::string
+PlaQui::Server::Request::CHARS_MARK = "-_.!~*'()";
-const std::string Request::CHARS_MARK = "-_.!~*'()";
+const std::string
+PlaQui::Server::Request::CHARS_UNRESERVED = CHARS_ALPHANUM + CHARS_MARK;
-const std::string Request::CHARS_UNRESERVED = CHARS_ALPHANUM + CHARS_MARK;
+const std::string
+PlaQui::Server::Request::CHARS_HEX = CHARS_DIGIT + std::string("abcdefABCDEF");
-const std::string Request::CHARS_HEX = CHARS_DIGIT + std::string("abcdefABCDEF");
+PlaQui::Server::Request::~Request(void) {
+}
-void Request::set_request(const std::string& req, const std::string& host,
- unsigned port) {
+void PlaQui::Server::Request::set_request(const std::string& req,
+ const std::string& host, unsigned port) {
#ifdef DEBUG
std::cerr << __FILE__ << ": req = " << req << " | host = " << host
<< " | port = " << port << std::endl;
(*this)["SCRIPT_NAME"] = request.substr(0, pos);
}
-void Request::parse_header(const std::string& header) {
+void PlaQui::Server::Request::parse_header(const std::string& header) {
#ifdef DEBUG
std::cerr << __FILE__ << ": header = " << header << std::endl;
#endif // DEBUG