AdaptationService.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2019 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 "acl/AdaptationService.h"
11 #include "acl/FilledChecklist.h"
12 #include "acl/IntRange.h"
13 #include "adaptation/Config.h"
14 #include "adaptation/History.h"
15 #include "HttpRequest.h"
16 
17 int
19 {
21  if (request == NULL)
22  return 0;
23  Adaptation::History::Pointer ah = request->adaptHistory();
24  if (ah == NULL)
25  return 0;
26 
27  Adaptation::History::AdaptationServices::iterator it;
28  for (it = ah->theAdaptationServices.begin(); it != ah->theAdaptationServices.end(); ++it) {
29  if (data->match(it->c_str()))
30  return 1;
31  }
32 
33  return 0;
34 }
35 
AdaptationServices theAdaptationServices
The service groups used.
Definition: History.h:68
#define NULL
Definition: types.h:166
void const char HLPCB void * data
Definition: stub_helper.cc:16
HttpRequest * request
virtual int match(ACLData< MatchType > *&, ACLFilledChecklist *) override
struct _request * request(char *urlin)
Definition: tcp-banger2.c:291

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors