+ req.query = "";
+ }
+ req.uri = line.substr(0, pos);
+ // Fin de request, obtengo el mensaje.
+ is >> static_cast<HTTPMessage&>(req);
+ //PlaQui::Server::operator>>(is, static_cast<HTTPMessage>(req));
+ return is;
+}
+
+ostream& operator<<(ostream& os, const HTTPRequest& req) {
+#ifdef DEBUG
+ cerr << __FILE__ << ": operator<<()" << endl;
+#endif // DEBUG
+ os << req.method << " " << req.uri;
+ if (req.query.length()) {
+ os << "?" << req.query;