Squid Web Cache
master
Loading...
Searching...
No Matches
RequestMimeType.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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
#ifndef SQUID_SRC_ACL_REQUESTMIMETYPE_H
10
#define SQUID_SRC_ACL_REQUESTMIMETYPE_H
11
12
#include "
acl/Data.h
"
13
#include "
acl/FilledChecklist.h
"
14
#include "
acl/RequestHeaderStrategy.h
"
15
16
/* partial specialisation */
17
18
template
<>
19
inline
int
20
Acl::RequestHeaderCheck<Http::HdrType::CONTENT_TYPE>::match
(
ACLChecklist
*
const
ch)
21
{
22
const
auto
checklist =
Filled
(ch);
23
24
char
const
*theHeader = checklist->request->header.getStr(
Http::HdrType::CONTENT_TYPE
);
25
26
if
(
nullptr
== theHeader)
27
theHeader =
""
;
28
29
return
data->match(theHeader);
30
}
31
32
#endif
/* SQUID_SRC_ACL_REQUESTMIMETYPE_H */
33
Data.h
FilledChecklist.h
Filled
ACLFilledChecklist * Filled(ACLChecklist *checklist)
convenience and safety wrapper for dynamic_cast<ACLFilledChecklist*>
Definition
FilledChecklist.h:146
RequestHeaderStrategy.h
ACLChecklist
Definition
Checklist.h:31
Acl::RequestHeaderCheck::match
int match(ACLChecklist *) override
Matches the actual data in checklist against this Acl::Node.
Definition
RequestHeaderStrategy.h:34
Http::CONTENT_TYPE
@ CONTENT_TYPE
Definition
RegisteredHeaders.h:46
squid
src
acl
RequestMimeType.h
Generated by
1.9.8