]> git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ServiceFilter.h
Merged from trunk
[thirdparty/squid.git] / src / adaptation / ServiceFilter.h
1 #ifndef SQUID_ADAPTATION__SERVICE_FILTER_H
2 #define SQUID_ADAPTATION__SERVICE_FILTER_H
3
4 #include "AccessLogEntry.h"
5 #include "adaptation/Elements.h"
6
7 class HttpRequest;
8 class HttpReply;
9
10 namespace Adaptation
11 {
12
13 /// information used to search for adaptation services
14 class ServiceFilter
15 {
16 public:
17 ServiceFilter(Method, VectPoint, HttpRequest *, HttpReply *, AccessLogEntry::Pointer const &al); // locks
18 ServiceFilter(const ServiceFilter &f);
19 ~ServiceFilter(); // unlocks
20
21 ServiceFilter &operator =(const ServiceFilter &f);
22
23 public:
24 Method method; ///< adaptation direction
25 VectPoint point; ///< adaptation location
26 HttpRequest *request; ///< HTTP request being adapted or cause; may be nil
27 HttpReply *reply; ///< HTTP response being adapted; may be nil
28 AccessLogEntry::Pointer al; ///< info for the future access.log entry
29 };
30
31 } // namespace Adaptation
32
33 #endif /* SQUID_ADAPTATION__SERVICE_FILTER_H */