METHOD_OTHER type now cleanly handles unknown methods in squid.
Part 1:
- removes the directive from squid default config.
- removes the placeholder EXT methods enumerations
- deprecates the code which previously handled config parsing.
part 2: (TODO)
- needs to cleanup the remaining enumerated methods to reduce
memory footprint
/*
- * $Id: HttpRequestMethod.cc,v 1.6 2008/02/03 10:00:29 amosjeffries Exp $
+ * $Id: HttpRequestMethod.cc,v 1.7 2008/02/12 00:05:11 amosjeffries Exp $
*
* DEBUG: section 73 HTTP Request
* AUTHOR: Duane Wessels
"MKACTIVITY",
"CHECKOUT",
"MERGE",
- "%EXT00",
- "%EXT01",
- "%EXT02",
- "%EXT03",
- "%EXT04",
- "%EXT05",
- "%EXT06",
- "%EXT07",
- "%EXT08",
- "%EXT09",
- "%EXT10",
- "%EXT11",
- "%EXT12",
- "%EXT13",
- "%EXT14",
- "%EXT15",
- "%EXT16",
- "%EXT17",
- "%EXT18",
- "%EXT19",
"ERROR"
};
void
HttpRequestMethod::AddExtension(const char *mstr)
{
+#if 0 /* obsolete now that we have METHOD_OTHER always enabled */
_method_t method = METHOD_NONE;
for (++method; method < METHOD_ENUM_END; ++method) {
}
debugs(23, 1, "WARNING: Could not add new extension method '" << mstr << "' due to lack of array space");
+#endif
}
void
HttpRequestMethod::Configure(SquidConfig &Config)
{
+#if 0 /* extension methods obsolete now that we have METHOD_OTHER always enabled */
wordlist *w = Config.ext_methods;
while (w) {
w = w->next;
}
+#endif
}
char const*
/*
- * $Id: HttpRequestMethod.h,v 1.8 2008/02/03 10:00:29 amosjeffries Exp $
+ * $Id: HttpRequestMethod.h,v 1.9 2008/02/12 00:05:11 amosjeffries Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
METHOD_MKACTIVITY,
METHOD_CHECKOUT,
METHOD_MERGE,
- METHOD_EXT00,
- METHOD_EXT01,
- METHOD_EXT02,
- METHOD_EXT03,
- METHOD_EXT04,
- METHOD_EXT05,
- METHOD_EXT06,
- METHOD_EXT07,
- METHOD_EXT08,
- METHOD_EXT09,
- METHOD_EXT10,
- METHOD_EXT11,
- METHOD_EXT12,
- METHOD_EXT13,
- METHOD_EXT14,
- METHOD_EXT15,
- METHOD_EXT16,
- METHOD_EXT17,
- METHOD_EXT18,
- METHOD_EXT19,
METHOD_OTHER,
METHOD_ENUM_END // MUST be last, (yuck) this is used as an array-initialization index constant!
};
#
-# $Id: cf.data.pre,v 1.501 2008/02/11 22:28:47 rousskov Exp $
+# $Id: cf.data.pre,v 1.502 2008/02/12 00:05:11 amosjeffries Exp $
#
# SQUID Web Proxy Cache http://www.squid-cache.org/
# ----------------------------------------------------------
objects not intended for caching to get cached.
DOC_END
-NAME: extension_methods
-TYPE: wordlist
-LOC: Config.ext_methods
-DEFAULT: none
-DOC_START
- Squid only knows about standardized HTTP request methods.
- You can add up to 20 additional "extension" methods here.
-DOC_END
-
NAME: request_entities
TYPE: onoff
LOC: Config.onoff.request_entities