]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/htcp.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / htcp.h
index 08e65aef56714c9a9651534d0676a1801a8f4251..850ba9bc368c0c9865d54d5a64b31cbc066b2ca6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2014 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.
 
 #if USE_HTCP
 
-#include "HttpHeader.h"
 #include "http/forward.h"
+#include "HttpHeader.h"
 #include "ip/forward.h"
+#include "store_key_md5.h"
 
 /// \ingroup ServerProtocolHTCP
 class HtcpReplyData
@@ -21,6 +22,10 @@ class HtcpReplyData
 
 public:
     HtcpReplyData();
+
+    /// parses request header from the buffer
+    bool parseHeader(const char *buffer, const size_t size);
+
     int hit;
     HttpHeader hdr;
     uint32_t msg_id;
@@ -50,7 +55,7 @@ void htcpOpenPorts(void);
  * \param p
  * \retval 1    Successfully sent request.
  * \retval 0    Unable to send request at this time. HTCP may be shutting down or starting up.
- *             Don't wait for a reply or count in stats as sent.
+ *      Don't wait for a reply or count in stats as sent.
  * \retval -1   Error sending request.
  */
 int htcpQuery(StoreEntry * e, HttpRequest * req, CachePeer * p);
@@ -67,3 +72,4 @@ void htcpClosePorts(void);
 #endif /* USE_HTCP */
 
 #endif /* SQUID_HTCP_H */
+