]> git.ipfire.org Git - thirdparty/squid.git/blame - src/MessageSizes.h
Prep for 3.3.12 and 3.4.4
[thirdparty/squid.git] / src / MessageSizes.h
CommitLineData
cc0ca3b9
AJ
1#ifndef SQUID_SRC_MESSAGESIZES_H
2#define SQUID_SRC_MESSAGESIZES_H
3
4/**
5 * Counters used to collate the traffic size measurements
6 * for a transaction message.
7 */
8class MessageSizes
9{
10public:
11 MessageSizes() : header(0), payloadData(0) {}
12
13 /// size of message header block (if any)
14 /// including message Request-Line or Start-Line.
15 uint64_t header;
16
17 /// total size of payload block(s) excluding transfer encoding overheads
18 uint64_t payloadData;
19
20 /// total message size
21 uint64_t messageTotal() const {return header + payloadData;}
22};
23
24#endif /* SQUID_SRC_MESSAGESIZES_H */