]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/Answer.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / adaptation / Answer.h
index 82de20945e7b2f242385a7088c44811f2c4130d7..2c62ee4c5de41673540a260576f637c0b5fc2240 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
  *
  * Squid software is distributed under GPLv2+ license and includes
  * contributions from numerous individuals and organizations.
@@ -10,7 +10,8 @@
 #define SQUID_ADAPTATION__ANSWER_H
 
 #include "adaptation/forward.h"
-#include "HttpMsg.h"
+#include "http/forward.h"
+#include "SquidString.h"
 
 #include <iosfwd>
 
@@ -29,13 +30,13 @@ public:
     } Kind;
 
     static Answer Error(bool final); ///< create an akError answer
-    static Answer Forward(HttpMsg *aMsg); ///< create an akForward answer
+    static Answer Forward(Http::Message *aMsg); ///< create an akForward answer
     static Answer Block(const String &aRule); ///< create an akBlock answer
 
     std::ostream &print(std::ostream &os) const;
 
 public:
-    HttpMsg::Pointer message; ///< HTTP request or response to forward
+    Http::MessagePointer message; ///< HTTP request or response to forward
     String ruleId; ///< ACL (or similar rule) name that blocked forwarding
     bool final; ///< whether the error, if any, cannot be bypassed
     Kind kind; ///< the type of the answer