Request.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
18namespace Mgr
19{
20
22class Request: public Ipc::Request
23{
24public:
25 Request(int aRequestorId, Ipc::RequestId, const Comm::ConnectionPointer &aConn,
26 const ActionParams &aParams);
27
28 explicit Request(const Ipc::TypedMsgHdr& msg);
29 /* Ipc::Request API */
30 virtual void pack(Ipc::TypedMsgHdr& msg) const;
31 virtual Pointer clone() const;
32
33public:
35
37};
38
39} // namespace Mgr
40
41#endif /* SQUID_MGR_REQUEST_H */
42
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:23
Comm::ConnectionPointer conn
HTTP client connection descriptor.
Definition: Request.h:34
virtual Pointer clone() const
returns a copy of this
Definition: Request.cc:55
ActionParams params
action name and parameters
Definition: Request.h:36
virtual void pack(Ipc::TypedMsgHdr &msg) const
prepare for sendmsg()
Definition: Request.cc:44
Cache Manager API.
Definition: Action.h:20

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors