AnnotateTransaction.cc
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 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"
11#include "acl/AnnotationData.h"
12#include "acl/FilledChecklist.h"
13#include "HttpRequest.h"
14
15int
17{
18 const auto checklist = Filled(ch);
19
20 if (const auto request = checklist->request) {
21 const auto tdata = dynamic_cast<ACLAnnotationData*>(data.get());
22 assert(tdata);
23 tdata->annotate(request->notes(), &delimiters.value, checklist->al);
24 return 1;
25 }
26 return 0;
27}
28
ACLFilledChecklist * Filled(ACLChecklist *checklist)
convenience and safety wrapper for dynamic_cast<ACLFilledChecklist*>
#define assert(EX)
Definition: assert.h:17
int match(ACLChecklist *) override
Matches the actual data in checklist against this ACL.
Acl::CharacterSetOptionValue delimiters
annotation separators
Definition: Note.h:27
Value value
final value storage, possibly after conversions
Definition: Options.h:120

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors