]> git.ipfire.org Git - thirdparty/squid.git/blob - src/refresh.h
e7fa291f2d018f90b3ef111d019d9afcc23a3048
[thirdparty/squid.git] / src / refresh.h
1 /*
2 * Copyright (C) 1996-2022 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 /* DEBUG: section 22 Refresh Calculation */
10
11 #ifndef SQUID_REFRESH_H_
12 #define SQUID_REFRESH_H_
13
14 class RefreshPattern;
15
16 void refreshAddToList(const char *, int, time_t, int, time_t);
17 bool refreshIsCachable(const StoreEntry *);
18 int refreshCheckHTTP(const StoreEntry *, HttpRequest *);
19 int refreshCheckICP(const StoreEntry *, HttpRequest *);
20 int refreshCheckHTCP(const StoreEntry *, HttpRequest *);
21 int refreshCheckDigest(const StoreEntry *, time_t delta);
22 time_t getMaxAge(const char *url);
23 void refreshInit(void);
24 const RefreshPattern *refreshLimits(const char *url);
25
26 #endif /* SQUID_REFRESH_H_ */
27