]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Permit simple HTTP version debug logging
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Jul 2011 06:01:48 +0000 (00:01 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 8 Jul 2011 06:01:48 +0000 (00:01 -0600)
src/HttpVersion.h

index ed60074b0f1cc3c7bd7e58a53c8a9718d1398445..145a4802d3ca9387484d5dad9e311831fc4d0336 100644 (file)
 #ifndef SQUID_HTTPVERSION_H
 #define SQUID_HTTPVERSION_H
 
+#if HAVE_OSTREAM
+#include <ostream>
+#endif
+
 class HttpVersion
 {
 
@@ -85,4 +89,10 @@ public:
     }
 };
 
+inline std::ostream &
+operator << (std::ostream &os, const HttpVersion &v)
+{
+    return (os << v.major << '.' << v.minor);
+}
+
 #endif /* SQUID_HTTPVERSION_H */