]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/adaptation/Answer.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / adaptation / Answer.h
index cf7f71c98333889803770ad4ff73c0cb84b6f4e1..554f11973da2c74f1ab70518dbbccc72c60521c0 100644 (file)
@@ -1,8 +1,17 @@
+/*
+ * Copyright (C) 1996-2023 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_ADAPTATION__ANSWER_H
 #define SQUID_ADAPTATION__ANSWER_H
 
 #include "adaptation/forward.h"
-#include "HttpMsg.h"
+#include "http/forward.h"
+#include "SquidString.h"
 
 #include <iosfwd>
 
@@ -21,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:
-    HttpMsgPointerT<HttpMsg> 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
@@ -45,3 +54,4 @@ std::ostream &operator <<(std::ostream &os, const Answer &answer)
 } // namespace Adaptation
 
 #endif /* SQUID_ADAPTATION__ANSWER_H */
+