]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/http/RequestMethod.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / http / RequestMethod.h
index 49bd8c3eac5af8d11a26d0bd5ccfe9c355243a40..09878707d5b00b6bef45fab9e7715c8211fbb736 100644 (file)
@@ -1,9 +1,17 @@
+/*
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef SQUID_HTTPREQUESTMETHOD_H
 #define SQUID_HTTPREQUESTMETHOD_H
 
 #include "http/forward.h"
 #include "http/MethodType.h"
-#include "SBuf.h"
+#include "sbuf/SBuf.h"
 
 class SquidConfig;
 
@@ -20,9 +28,10 @@ class HttpRequestMethod : public RefCountable
 public:
     HttpRequestMethod() : theMethod(Http::METHOD_NONE), theImage() {}
     HttpRequestMethod(Http::MethodType const aMethod) : theMethod(aMethod), theImage() {}
-    explicit HttpRequestMethod(char const *);
     explicit HttpRequestMethod(const SBuf &);
 
+    void HttpRequestMethodXXX(char const *); // deprecated old c-string to SBuf converter.
+
     HttpRequestMethod & operator = (const HttpRequestMethod& aMethod) {
         theMethod = aMethod.theMethod;
         theImage = aMethod.theImage;
@@ -114,3 +123,4 @@ operator << (std::ostream &os, HttpRequestMethod const &method)
 }
 
 #endif /* SQUID_HTTPREQUESTMETHOD_H */
+