From: wessels <> Date: Fri, 18 Jun 1999 10:24:59 +0000 (+0000) Subject: RFC 2518 WEBDAV request methods X-Git-Tag: SQUID_3_0_PRE1~2148 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21e1d5002e2d0b28ef5a720a8d97d829fdff602c;p=thirdparty%2Fsquid.git RFC 2518 WEBDAV request methods --- diff --git a/src/enums.h b/src/enums.h index c16695d58a..bbabca4e4b 100644 --- a/src/enums.h +++ b/src/enums.h @@ -1,6 +1,6 @@ /* - * $Id: enums.h,v 1.156 1999/06/17 22:20:38 wessels Exp $ + * $Id: enums.h,v 1.157 1999/06/18 04:24:59 wessels Exp $ * * * SQUID Internet Object Cache http://squid.nlanr.net/Squid/ @@ -364,6 +364,15 @@ enum { METHOD_CONNECT, /* 101 */ METHOD_TRACE, /* 110 */ METHOD_PURGE, /* 111 */ +#ifndef RFC_2518 + METHOD_PROPFIND, + METHOD_PROPPATCH, + METHOD_MKCOL, + METHOD_COPY, + METHOD_MOVE, + METHOD_LOCK, + METHOD_UNLOCK, +#endif METHOD_ENUM_END }; typedef unsigned int method_t; diff --git a/src/url.cc b/src/url.cc index 79bc9171bc..a176cb248c 100644 --- a/src/url.cc +++ b/src/url.cc @@ -1,6 +1,6 @@ /* - * $Id: url.cc,v 1.116 1999/05/04 21:58:46 wessels Exp $ + * $Id: url.cc,v 1.117 1999/06/18 04:25:01 wessels Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -44,7 +44,17 @@ const char *RequestMethodStr[] = "HEAD", "CONNECT", "TRACE", - "PURGE" + "PURGE", +#ifndef RFC_2518 + "PROPFIND", + "PROPPATCH", + "MKCOL", + "COPY", + "MOVE", + "LOCK", + "UNLOCK", +#endif + "ERROR" }; const char *ProtocolStr[] = @@ -131,6 +141,22 @@ urlParseMethod(const char *s) return METHOD_TRACE; } else if (strcasecmp(s, "PURGE") == 0) { return METHOD_PURGE; +#ifndef RFC_2518 + } else if (strcasecmp(s, "PROPFIND") == 0) { + return METHOD_PROPFIND; + } else if (strcasecmp(s, "PROPPATCH") == 0) { + return METHOD_PROPPATCH; + } else if (strcasecmp(s, "MKCOL") == 0) { + return METHOD_MKCOL; + } else if (strcasecmp(s, "COPY") == 0) { + return METHOD_COPY; + } else if (strcasecmp(s, "MOVE") == 0) { + return METHOD_MOVE; + } else if (strcasecmp(s, "LOCK") == 0) { + return METHOD_LOCK; + } else if (strcasecmp(s, "UNLOCK") == 0) { + return METHOD_UNLOCK; +#endif } return METHOD_NONE; }