Request.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_SRC_MGR_REQUEST_H
12 #define SQUID_SRC_MGR_REQUEST_H
13 
14 #include "comm/forward.h"
15 #include "ipc/forward.h"
16 #include "ipc/Request.h"
17 #include "mgr/ActionParams.h"
18 
19 namespace Mgr
20 {
21 
23 class Request: public Ipc::Request
24 {
25 public:
26  Request(int aRequestorId, Ipc::RequestId, const Comm::ConnectionPointer &aConn,
27  const ActionParams &aParams);
28 
29  explicit Request(const Ipc::TypedMsgHdr& msg);
30  /* Ipc::Request API */
31  void pack(Ipc::TypedMsgHdr& msg) const override;
32  Pointer clone() const override;
33 
34 public:
36 
38 };
39 
40 } // namespace Mgr
41 
42 #endif /* SQUID_SRC_MGR_REQUEST_H */
43 
Pointer clone() const override
returns a copy of this
Definition: Request.cc:55
Request()=default
recipient's constructor
cache manager request
Definition: Request.h:23
ActionParams params
action name and parameters
Definition: Request.h:37
Cache Manager Action parameters extracted from the user request.
Definition: ActionParams.h:23
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:34
void pack(Ipc::TypedMsgHdr &msg) const override
prepare for sendmsg()
Definition: Request.cc:44
IPC request.
Definition: Request.h:27
Comm::ConnectionPointer conn
HTTP client connection descriptor.
Definition: Request.h:35
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous