/*
- * $Id: ICAPConfig.h,v 1.5 2005/12/01 23:24:00 wessels Exp $
+ * $Id: ICAPConfig.h,v 1.6 2005/12/13 22:17:03 wessels Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
int onoff;
int preview_enable;
int preview_size;
+ int default_options_ttl;
int send_client_ip;
int send_client_username;
int reuse_connections;
#include "HttpReply.h"
#include "ICAPOptions.h"
#include "TextException.h"
+#include "ICAPConfig.h"
+
+extern ICAPConfig TheICAPConfig;
ICAPOptions::ICAPOptions(): error("unconfigured"), method(ICAP::methodNone),
max_connections(-1), allow204(false),
cfgIntHeader(h, "Options-TTL", theTTL);
+ if (theTTL < 0)
+ theTTL = TheICAPConfig.default_options_ttl;
+
theTimestamp = httpHeaderGetTime(h, HDR_DATE);
if (theTimestamp < 0)
#
-# $Id: cf.data.pre,v 1.408 2005/12/01 23:23:59 wessels Exp $
+# $Id: cf.data.pre,v 1.409 2005/12/13 22:17:02 wessels Exp $
#
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
basis by OPTIONS requests.
DOC_END
+NAME: icap_default_options_ttl
+TYPE: int
+IFDEF: ICAP_CLIENT
+LOC: TheICAPConfig.default_options_ttl
+DEFAULT: 60
+DOC_START
+ The default TTL value for ICAP OPTIONS responses that don't have
+ an Options-TTL header.
+DOC_END
+
NAME: icap_persistent_connections
TYPE: onoff
IFDEF: ICAP_CLIENT