]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (C) 1996-2025 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 SQUID_SRC_ADAPTATION_ELEMENTS_H | |
10 | #define SQUID_SRC_ADAPTATION_ELEMENTS_H | |
11 | ||
12 | // widely used adaptation primitives | |
13 | ||
14 | namespace Adaptation | |
15 | { | |
16 | ||
17 | typedef enum { methodNone, methodReqmod, methodRespmod, methodOptions } Method; | |
18 | typedef enum { pointNone, pointPreCache, pointPostCache } VectPoint; | |
19 | typedef enum { srvBlock, srvBypass, srvWait, srvForce} SrvBehaviour; | |
20 | ||
21 | extern const char *crlf; | |
22 | const char *methodStr(Method); // TODO: make into a stream operator? | |
23 | const char *vectPointStr(VectPoint); // TODO: make into a stream op? | |
24 | ||
25 | } // namespace Adaptation | |
26 | ||
27 | #endif /* SQUID_SRC_ADAPTATION_ELEMENTS_H */ | |
28 |