37 const auto url =
icpGetUrl(from, buf, header);
49 ICP3State state(header, icp_request.getRaw());
72 debugs(12, 3,
"icpHandleIcpV3: ICP message is too small");
81 if (len != header.
length) {
82 debugs(12, 3,
"icpHandleIcpV3: ICP message is too small");
const char * icpGetUrl(const Ip::Address &from, const char *, const icp_common_t &)
~ICP3State() override=default
ICP3State(icp_common_t &aHeader, HttpRequest *aRequest)
bool isHit() const
whether the cache contains the requested entry
void handleReply(char *buf, Ip::Address &from)
icp_opcode getOpCode() const
#define debugs(SECTION, LEVEL, CONTENT)
icp_opcode icpGetCommonOpcode()
void icpCreateAndSend(icp_opcode, int flags, char const *url, int reqnum, int pad, int fd, const Ip::Address &from, AccessLogEntryPointer)
HttpRequestPointer icpGetRequest(const char *url, int reqnum, int fd, const Ip::Address &from)
static void doV3Query(int fd, Ip::Address &from, const char *const buf, icp_common_t header)
void icpHandleIcpV3(int fd, Ip::Address &from, char *buf, int len)
const char * icp_opcode_str[]