]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/adaptation/icap/History.h
1 #ifndef SQUID_ICAPHISTORY_H
2 #define SQUID_ICAPHISTORY_H
12 /// collects information about ICAP processing related to an HTTP transaction
13 class History
: public RefCountable
16 typedef RefCount
<History
> Pointer
;
20 /// record the start of an ICAP processing interval
21 void start(const char *context
);
22 /// note the end of an ICAP processing interval
23 void stop(const char *context
);
25 /// returns the total time of all ICAP processing intervals
26 int processingTime() const;
28 String rfc931
; ///< the username from ident
30 String ssluser
; ///< the username from SSL
32 log_type logType
; ///< the squid request status (TCP_MISS etc)
34 String log_uri
; ///< the request uri
35 size_t req_sz
; ///< the request size
38 int currentTime() const; ///< time since current start or zero
40 timeval currentStart
; ///< when the current processing interval started
41 int pastTime
; ///< sum of closed processing interval durations
42 int concurrencyLevel
; ///< number of concurrent processing threads
46 } // namespace Adaptation
48 #endif /*SQUID_HISTORY_H*/