]>
Commit | Line | Data |
---|---|---|
43ae1d95 | 1 | /* |
b8ae064d | 2 | * Copyright (C) 1996-2023 The Squid Software Foundation and contributors |
43ae1d95 | 3 | * |
bbc27441 AJ |
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. | |
43ae1d95 | 7 | */ |
8 | ||
ff9d9458 FC |
9 | #ifndef SQUID_SRC_ESI_ESI_H |
10 | #define SQUID_SRC_ESI_ESI_H | |
43ae1d95 | 11 | |
12 | #include "clientStream.h" | |
f66e113e AJ |
13 | #include "sbuf/SBuf.h" |
14 | ||
15 | #if !defined(ESI_STACK_DEPTH_LIMIT) | |
16 | #define ESI_STACK_DEPTH_LIMIT 20 | |
17 | #endif | |
43ae1d95 | 18 | |
19 | /* ESI.c */ | |
20 | extern CSR esiStreamRead; | |
21 | extern CSCB esiProcessStream; | |
22 | extern CSD esiStreamDetach; | |
23 | extern CSS esiStreamStatus; | |
8a648e8d | 24 | int esiEnableProcessing (HttpReply *); |
43ae1d95 | 25 | |
f66e113e AJ |
26 | namespace Esi |
27 | { | |
28 | ||
29 | typedef SBuf ErrorDetail; | |
30 | /// prepare an Esi::ErrorDetail for throw on ESI parser internal errors | |
31 | inline Esi::ErrorDetail Error(const char *msg) { return ErrorDetail(msg); } | |
32 | ||
33 | } // namespace Esi | |
34 | ||
ff9d9458 | 35 | #endif /* SQUID_SRC_ESI_ESI_H */ |
f53969cc | 36 |