]> git.ipfire.org Git - thirdparty/squid.git/blame - src/mgr/Request.h
Maintenance: automate header guards 2/3 (#1655)
[thirdparty/squid.git] / src / mgr / Request.h
CommitLineData
8822ebee 1/*
b8ae064d 2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
8822ebee 3 *
bbc27441
AJ
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
8822ebee
AR
7 */
8
bbc27441
AJ
9/* DEBUG: section 16 Cache Manager API */
10
ff9d9458
FC
11#ifndef SQUID_SRC_MGR_REQUEST_H
12#define SQUID_SRC_MGR_REQUEST_H
8822ebee 13
a7b75c64 14#include "comm/forward.h"
51ea0904
CT
15#include "ipc/forward.h"
16#include "ipc/Request.h"
8822ebee
AR
17#include "mgr/ActionParams.h"
18
8822ebee
AR
19namespace Mgr
20{
21
d9fc6862 22/// cache manager request
51ea0904 23class Request: public Ipc::Request
8822ebee
AR
24{
25public:
4c218615 26 Request(int aRequestorId, Ipc::RequestId, const Comm::ConnectionPointer &aConn,
d9fc6862 27 const ActionParams &aParams);
8822ebee
AR
28
29 explicit Request(const Ipc::TypedMsgHdr& msg); ///< from recvmsg()
51ea0904 30 /* Ipc::Request API */
337b9aa4
AR
31 void pack(Ipc::TypedMsgHdr& msg) const override;
32 Pointer clone() const override;
51ea0904 33
8822ebee 34public:
1b76e6c1 35 Comm::ConnectionPointer conn; ///< HTTP client connection descriptor
8822ebee
AR
36
37 ActionParams params; ///< action name and parameters
38};
39
8822ebee
AR
40} // namespace Mgr
41
ff9d9458 42#endif /* SQUID_SRC_MGR_REQUEST_H */
f53969cc 43