]> git.ipfire.org Git - thirdparty/squid.git/blob - src/HttpHeaderFieldInfo.h
Renamed http_hdr_type to Http::HdrType, fixed some HdrType-int implicit conversions
[thirdparty/squid.git] / src / HttpHeaderFieldInfo.h
1 /*
2 * Copyright (C) 1996-2015 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_HTTPHEADERFIELDINFO_H_
10 #define SQUID_HTTPHEADERFIELDINFO_H_
11
12 #include "http/RegisteredHeaders.h"
13 #include "HttpHeaderFieldStat.h"
14 #include "SquidString.h"
15
16 /// compiled version of HttpHeaderFieldAttrs plus stats. Currently a POD.
17 class HttpHeaderFieldInfo
18 {
19 public:
20 HttpHeaderFieldInfo() : id(Http::HdrType::ACCEPT), type(field_type::ftInvalid) {}
21
22 Http::HdrType id;
23 String name;
24 field_type type;
25 HttpHeaderFieldStat stat;
26 };
27
28 #endif /* SQUID_HTTPHEADERFIELDINFO_H_ */
29