+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;
+ }
+ // TODO ver que este bien el \r\l
+ os << " HTTP/" << req.version << "\r\n" << static_cast<const HTTPMessage&>(req);
+ return os;
+}
+
+} // namespace Server
+
+} // namespace PlaQui
+