]> git.ipfire.org Git - thirdparty/squid.git/blame - src/adaptation/ServiceFilter.h
%tS logformat code
[thirdparty/squid.git] / src / adaptation / ServiceFilter.h
CommitLineData
a22e6cd3
AR
1#ifndef SQUID_ADAPTATION__SERVICE_FILTER_H
2#define SQUID_ADAPTATION__SERVICE_FILTER_H
3
af0ded40 4#include "AccessLogEntry.h"
a22e6cd3
AR
5#include "adaptation/Elements.h"
6
7class HttpRequest;
8class HttpReply;
9
10namespace Adaptation
11{
12
13/// information used to search for adaptation services
14class ServiceFilter
15{
16public:
af0ded40 17 ServiceFilter(Method, VectPoint, HttpRequest *, HttpReply *, AccessLogEntry::Pointer const &al); // locks
a22e6cd3
AR
18 ServiceFilter(const ServiceFilter &f);
19 ~ServiceFilter(); // unlocks
20
21 ServiceFilter &operator =(const ServiceFilter &f);
22
23public:
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
af0ded40 28 AccessLogEntry::Pointer al; ///< info for the future access.log entry
a22e6cd3
AR
29};
30
31} // namespace Adaptation
32
33#endif /* SQUID_ADAPTATION__SERVICE_FILTER_H */