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_MGR_REQUEST_H
12#define SQUID_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
19namespace Mgr
20{
21
23class Request: public Ipc::Request
24{
25public:
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
34public:
36
38};
39
40} // namespace Mgr
41
42#endif /* SQUID_MGR_REQUEST_H */
43
IPC request.
Definition: Request.h:28
Request()=default
recipient's constructor
struct msghdr with a known type, fixed-size I/O and control buffers
Definition: TypedMsgHdr.h:35
Cache Manager Action parameters extracted from the user request.
Definition: ActionParams.h:24
cache manager request
Definition: Request.h:24
Pointer clone() const override
returns a copy of this
Definition: Request.cc:55
Comm::ConnectionPointer conn
HTTP client connection descriptor.
Definition: Request.h:35
ActionParams params
action name and parameters
Definition: Request.h:37
void pack(Ipc::TypedMsgHdr &msg) const override
prepare for sendmsg()
Definition: Request.cc:44
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors