]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
cc0ca3b9 AJ |
9 | #ifndef SQUID_SRC_MESSAGESIZES_H |
10 | #define SQUID_SRC_MESSAGESIZES_H | |
11 | ||
12 | /** | |
13 | * Counters used to collate the traffic size measurements | |
14 | * for a transaction message. | |
15 | */ | |
16 | class MessageSizes | |
17 | { | |
18 | public: | |
cc0ca3b9 AJ |
19 | /// size of message header block (if any) |
20 | /// including message Request-Line or Start-Line. | |
2293af18 | 21 | uint64_t header = 0; |
cc0ca3b9 AJ |
22 | |
23 | /// total size of payload block(s) excluding transfer encoding overheads | |
2293af18 | 24 | uint64_t payloadData = 0; |
cc0ca3b9 AJ |
25 | |
26 | /// total message size | |
27 | uint64_t messageTotal() const {return header + payloadData;} | |
28 | }; | |
29 | ||
ff9d9458 | 30 | #endif /* SQUID_SRC_MESSAGESIZES_H */ |
f53969cc | 31 |