ServiceFilter.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2018 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 #include "squid.h"
10 #include "AccessLogEntry.h"
12 #include "HttpReply.h"
13 #include "HttpRequest.h"
14 
16  method(aMethod),
17  point(aPoint),
18  request(aReq),
19  reply(aRep),
20  al(alp)
21 {
22  if (reply)
24 
25  // a lot of code assumes that there is always a virgin request or cause
26  assert(request);
28 }
29 
31  method(f.method),
32  point(f.point),
33  request(f.request),
34  reply(f.reply),
35  al(f.al)
36 {
37  if (request)
39 
40  if (reply)
42 }
43 
45 {
47  HTTPMSGUNLOCK(reply);
48 }
49 
51 {
52  if (this != &f) {
53  method = f.method;
54  point = f.point;
56  HTTPMSGUNLOCK(reply);
57  request = f.request;
59  reply = f.reply;
60  if (reply)
61  HTTPMSGLOCK(reply);
62  }
63  return *this;
64 }
65 
#define assert(EX)
Definition: assert.h:17
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291
Method method
adaptation direction
Definition: ServiceFilter.h:32
void HTTPMSGLOCK(Http::Message *a)
Definition: Message.h:160
VectPoint point
adaptation location
Definition: ServiceFilter.h:33
ServiceFilter & operator=(const ServiceFilter &f)
HttpRequest * request
HTTP request being adapted or cause; may be nil.
Definition: ServiceFilter.h:34
HttpReply * reply
HTTP response being adapted; may be nil.
Definition: ServiceFilter.h:35
information used to search for adaptation services
Definition: ServiceFilter.h:22
void HTTPMSGUNLOCK(M *&a)
Definition: Message.h:149
size_t HttpReply *STUB StoreEntry const KeyScope scope const HttpRequestMethod & method
Definition: stub_store.cc:122
ServiceFilter(Method, VectPoint, HttpRequest *, HttpReply *, AccessLogEntry::Pointer const &al)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors