/*
- * 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
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;
* \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);
#endif /* USE_HTCP */
#endif /* SQUID_HTCP_H */
+