]> git.ipfire.org Git - thirdparty/squid.git/blame - src/adaptation/ServiceFilter.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / adaptation / ServiceFilter.h
CommitLineData
bbc27441 1/*
77b1029d 2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
bbc27441
AJ
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
a22e6cd3
AR
9#ifndef SQUID_ADAPTATION__SERVICE_FILTER_H
10#define SQUID_ADAPTATION__SERVICE_FILTER_H
11
af0ded40 12#include "AccessLogEntry.h"
a22e6cd3
AR
13#include "adaptation/Elements.h"
14
15class HttpRequest;
16class HttpReply;
17
18namespace Adaptation
19{
20
21/// information used to search for adaptation services
22class ServiceFilter
23{
24public:
af0ded40 25 ServiceFilter(Method, VectPoint, HttpRequest *, HttpReply *, AccessLogEntry::Pointer const &al); // locks
a22e6cd3
AR
26 ServiceFilter(const ServiceFilter &f);
27 ~ServiceFilter(); // unlocks
28
29 ServiceFilter &operator =(const ServiceFilter &f);
30
31public:
32 Method method; ///< adaptation direction
33 VectPoint point; ///< adaptation location
34 HttpRequest *request; ///< HTTP request being adapted or cause; may be nil
35 HttpReply *reply; ///< HTTP response being adapted; may be nil
af0ded40 36 AccessLogEntry::Pointer al; ///< info for the future access.log entry
a22e6cd3
AR
37};
38
39} // namespace Adaptation
40
41#endif /* SQUID_ADAPTATION__SERVICE_FILTER_H */
f53969cc 42