]> git.ipfire.org Git - thirdparty/squid.git/blob - src/mgr/Request.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / mgr / Request.h
1 /*
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9 /* DEBUG: section 16 Cache Manager API */
10
11 #ifndef SQUID_MGR_REQUEST_H
12 #define SQUID_MGR_REQUEST_H
13
14 #include "ipc/forward.h"
15 #include "ipc/Request.h"
16 #include "mgr/ActionParams.h"
17
18 namespace Mgr
19 {
20
21 /// cache manager request
22 class Request: public Ipc::Request
23 {
24 public:
25 Request(int aRequestorId, unsigned int aRequestId, const Comm::ConnectionPointer &aConn,
26 const ActionParams &aParams);
27
28 explicit Request(const Ipc::TypedMsgHdr& msg); ///< from recvmsg()
29 /* Ipc::Request API */
30 virtual void pack(Ipc::TypedMsgHdr& msg) const;
31 virtual Pointer clone() const;
32
33 private:
34 Request(const Request& request);
35
36 public:
37 Comm::ConnectionPointer conn; ///< HTTP client connection descriptor
38
39 ActionParams params; ///< action name and parameters
40 };
41
42 } // namespace Mgr
43
44 #endif /* SQUID_MGR_REQUEST_H */
45