]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/http/forward.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / http / forward.h
index 3ae78ba0e353715e9194d8e9b4240aebf1d99c7d..ad9cd5474203e5275d3110f560ea148ae4bda423 100644 (file)
@@ -1,11 +1,45 @@
+/*
+ * 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_SRC_HTTP_FORWARD_H
 #define SQUID_SRC_HTTP_FORWARD_H
 
 #include "http/one/forward.h"
 
-// TODO move these classes into Http namespace
+#define HTTP_REQBUF_SZ  4096
+
+namespace Http
+{
+
+class ContentLengthInterpreter;
+
+class Message;
+typedef RefCount<Http::Message> MessagePointer;
+
+class Stream;
+typedef RefCount<Http::Stream> StreamPointer;
+
+} // namespace Http
+
+// TODO move these into Http namespace
+
+typedef enum {
+    SC_NO_STORE,
+    SC_NO_STORE_REMOTE,
+    SC_MAX_AGE,
+    SC_CONTENT,
+    SC_OTHER,
+    SC_ENUM_END /* also used to mean "invalid" */
+} http_hdr_sc_type;
+
+class HttpHdrSc;
+
 class HttpRequestMethod;
-typedef RefCount<HttpRequestMethod> HttpRequestMethodPointer;
 
 class HttpRequest;
 typedef RefCount<HttpRequest> HttpRequestPointer;
@@ -14,3 +48,4 @@ class HttpReply;
 typedef RefCount<HttpReply> HttpReplyPointer;
 
 #endif /* SQUID_SRC_HTTP_FORWARD_H */
+