HttpHeaderStat.h
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#ifndef HTTPHEADERSTAT_H_
10#define HTTPHEADERSTAT_H_
11
12#include "HttpHdrCc.h"
13#include "HttpHdrSc.h"
14#include "StatHist.h"
15
18{
19public:
21 label(nullptr),
22 owner_mask(nullptr),
23 parsedCount(0),
28 {
29 hdrUCountDistr.enumInit(32); /* not a real enum */
33 }
34
35 HttpHeaderStat(const char *aLabel, HttpHeaderMask *aMask) :
36 label(aLabel),
37 owner_mask(aMask),
38 parsedCount(0),
43 {
45 hdrUCountDistr.enumInit(32); /* not a real enum */
49 }
50
51 // nothing to destruct as label is a pointer to global const string
52 // and owner_mask is a pointer to global static array
54
55 const char *label;
57
62
68};
69
70#endif /* HTTPHEADERSTAT_H_ */
71
@ CC_ENUM_END
Definition: HttpHdrCc.h:36
char HttpHeaderMask[12]
#define assert(EX)
Definition: assert.h:17
HTTP per header statistics.
HttpHeaderStat(const char *aLabel, HttpHeaderMask *aMask)
StatHist scTypeDistr
HttpHeaderMask * owner_mask
const char * label
StatHist fieldTypeDistr
StatHist hdrUCountDistr
StatHist ccTypeDistr
void enumInit(unsigned int last_enum)
Definition: StatHist.cc:235
@ SC_ENUM_END
Definition: forward.h:37

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors