]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/ServiceFilter.cc
2 #include "HttpRequest.h"
4 #include "adaptation/ServiceFilter.h"
6 Adaptation::ServiceFilter::ServiceFilter(Method aMethod
, VectPoint aPoint
,
7 HttpRequest
*aReq
, HttpReply
*aRep
): method(aMethod
), point(aPoint
),
8 request(HTTPMSGLOCK(aReq
)),
9 reply(aRep
? HTTPMSGLOCK(aRep
) : NULL
)
11 // a lot of code assumes that there is always a virgin request or cause
15 Adaptation::ServiceFilter::ServiceFilter(const ServiceFilter
&f
):
16 method(f
.method
), point(f
.point
),
17 request(HTTPMSGLOCK(f
.request
)),
18 reply(f
.reply
? HTTPMSGLOCK(f
.reply
) : NULL
)
22 Adaptation::ServiceFilter::~ServiceFilter()
24 HTTPMSGUNLOCK(request
);
28 Adaptation::ServiceFilter
&Adaptation::ServiceFilter::operator =(const ServiceFilter
&f
)
33 HTTPMSGUNLOCK(request
);
35 request
= HTTPMSGLOCK(f
.request
);
36 reply
= f
.reply
? HTTPMSGLOCK(f
.reply
) : NULL
;