]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/HttpHeaderStat.h
2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
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.
9 #ifndef HTTPHEADERSTAT_H_
10 #define HTTPHEADERSTAT_H_
12 #include "HttpHdrCc.h"
13 #include "HttpHdrSc.h"
16 /// HTTP per header statistics
29 hdrUCountDistr
.enumInit(32); /* not a real enum */
30 fieldTypeDistr
.enumInit(Http::HdrType::enumEnd_
);
31 ccTypeDistr
.enumInit(HttpHdrCcType::CC_ENUM_END
);
32 scTypeDistr
.enumInit(SC_ENUM_END
);
35 HttpHeaderStat(const char *aLabel
, HttpHeaderMask
*aMask
) :
45 hdrUCountDistr
.enumInit(32); /* not a real enum */
46 fieldTypeDistr
.enumInit(Http::HdrType::enumEnd_
);
47 ccTypeDistr
.enumInit(HttpHdrCcType::CC_ENUM_END
);
48 scTypeDistr
.enumInit(SC_ENUM_END
);
51 // nothing to destruct as label is a pointer to global const string
52 // and owner_mask is a pointer to global static array
56 HttpHeaderMask
*owner_mask
;
58 StatHist hdrUCountDistr
;
59 StatHist fieldTypeDistr
;
67 int busyDestroyedCount
;
70 #endif /* HTTPHEADERSTAT_H_ */