]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/anyp/ProtocolType.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / anyp / ProtocolType.h
index 031f47c596c8fa0ef18c1fb45b6239e29d69d6c2..6e5ef8f431e16b09cdc692f183ef65d219525463 100644 (file)
@@ -1,12 +1,20 @@
+/*
+ * 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_ANYP_PROTOCOLTYPE_H
 #define _SQUID_SRC_ANYP_PROTOCOLTYPE_H
 
-#if HAVE_OSTREAM
 #include <ostream>
-#endif
 
-namespace AnyP {
+namespace AnyP
+{
 
+// TODO order by current protocol popularity (eg HTTPS before FTP)
 /**
  * List of all protocols known and supported.
  * This is a combined list. It is used as type-codes where needed and
@@ -17,17 +25,20 @@ typedef enum {
     PROTO_HTTP,
     PROTO_FTP,
     PROTO_HTTPS,
-    PROTO_GOPHER,
+    PROTO_COAP,
+    PROTO_COAPS,
     PROTO_WAIS,
-    PROTO_CACHEOBJ,
+    PROTO_CACHE_OBJECT,
     PROTO_ICP,
 #if USE_HTCP
     PROTO_HTCP,
 #endif
     PROTO_URN,
     PROTO_WHOIS,
-    PROTO_INTERNAL,
     PROTO_ICY,
+    PROTO_TLS,
+    PROTO_SSL,
+    PROTO_AUTHORITY_FORM,
     PROTO_UNKNOWN,
     PROTO_MAX
 } ProtocolType;
@@ -51,3 +62,4 @@ operator <<(std::ostream &os, ProtocolType const &p)
 } // namespace AnyP
 
 #endif /* _SQUID_SRC_ANYP_PROTOCOLTYPE_H */
+