@@ -1322,6 +1322,16 @@ WebRequestMethod stringToMethod(const String &m) {
13221322 return AsyncWebRequestMethod::HTTP_HEAD ;
13231323 } else if (m == T_OPTIONS ) {
13241324 return AsyncWebRequestMethod::HTTP_OPTIONS ;
1325+ } else if (m == T_TRACE ) {
1326+ return AsyncWebRequestMethod::HTTP_TRACE ;
1327+ } else if (m == T_CONNECT ) {
1328+ return AsyncWebRequestMethod::HTTP_CONNECT ;
1329+ } else if (m == T_PURGE ) {
1330+ return AsyncWebRequestMethod::HTTP_PURGE ;
1331+ } else if (m == T_LINK ) {
1332+ return AsyncWebRequestMethod::HTTP_LINK ;
1333+ } else if (m == T_UNLINK ) {
1334+ return AsyncWebRequestMethod::HTTP_UNLINK ;
13251335 } else if (m == T_PROPFIND ) {
13261336 return AsyncWebRequestMethod::HTTP_PROPFIND ;
13271337 } else if (m == T_LOCK ) {
@@ -1336,27 +1346,52 @@ WebRequestMethod stringToMethod(const String &m) {
13361346 return AsyncWebRequestMethod::HTTP_MOVE ;
13371347 } else if (m == T_COPY ) {
13381348 return AsyncWebRequestMethod::HTTP_COPY ;
1349+ } else if (m == T_SEARCH ) {
1350+ return AsyncWebRequestMethod::HTTP_SEARCH ;
1351+ } else if (m == T_BIND ) {
1352+ return AsyncWebRequestMethod::HTTP_BIND ;
1353+ } else if (m == T_REBIND ) {
1354+ return AsyncWebRequestMethod::HTTP_REBIND ;
1355+ } else if (m == T_UNBIND ) {
1356+ return AsyncWebRequestMethod::HTTP_UNBIND ;
1357+ } else if (m == T_ACL ) {
1358+ return AsyncWebRequestMethod::HTTP_ACL ;
13391359 } else {
13401360 return AsyncWebRequestMethod::HTTP_INVALID ;
13411361 }
13421362}
13431363
13441364const char *methodToString (WebRequestMethod method) {
13451365 switch (method) {
1366+ case AsyncWebRequestMethod::HTTP_DELETE : return T_DELETE ;
13461367 case AsyncWebRequestMethod::HTTP_GET : return T_GET ;
1368+ case AsyncWebRequestMethod::HTTP_HEAD : return T_HEAD ;
13471369 case AsyncWebRequestMethod::HTTP_POST : return T_POST ;
1348- case AsyncWebRequestMethod::HTTP_DELETE : return T_DELETE ;
13491370 case AsyncWebRequestMethod::HTTP_PUT : return T_PUT ;
1350- case AsyncWebRequestMethod:: HTTP_PATCH : return T_PATCH ;
1351- case AsyncWebRequestMethod::HTTP_HEAD : return T_HEAD ;
1371+ /* pathological */
1372+ case AsyncWebRequestMethod::HTTP_CONNECT : return T_CONNECT ;
13521373 case AsyncWebRequestMethod::HTTP_OPTIONS : return T_OPTIONS ;
1353- case AsyncWebRequestMethod::HTTP_PROPFIND : return T_PROPFIND ;
1374+ case AsyncWebRequestMethod::HTTP_TRACE : return T_TRACE ;
1375+ /* WebDAV */
1376+ case AsyncWebRequestMethod::HTTP_COPY : return T_COPY ;
13541377 case AsyncWebRequestMethod::HTTP_LOCK : return T_LOCK ;
1355- case AsyncWebRequestMethod::HTTP_UNLOCK : return T_UNLOCK ;
1356- case AsyncWebRequestMethod::HTTP_PROPPATCH : return T_PROPPATCH ;
13571378 case AsyncWebRequestMethod::HTTP_MKCOL : return T_MKCOL ;
13581379 case AsyncWebRequestMethod::HTTP_MOVE : return T_MOVE ;
1359- case AsyncWebRequestMethod::HTTP_COPY : return T_COPY ;
1380+ case AsyncWebRequestMethod::HTTP_PROPFIND : return T_PROPFIND ;
1381+ case AsyncWebRequestMethod::HTTP_PROPPATCH : return T_PROPPATCH ;
1382+ case AsyncWebRequestMethod::HTTP_SEARCH : return T_SEARCH ;
1383+ case AsyncWebRequestMethod::HTTP_UNLOCK : return T_UNLOCK ;
1384+ case AsyncWebRequestMethod::HTTP_BIND : return T_BIND ;
1385+ case AsyncWebRequestMethod::HTTP_REBIND : return T_REBIND ;
1386+ case AsyncWebRequestMethod::HTTP_UNBIND : return T_UNBIND ;
1387+ case AsyncWebRequestMethod::HTTP_ACL : return T_ACL ;
1388+ /* RFC-5789 */
1389+ case AsyncWebRequestMethod::HTTP_PATCH : return T_PATCH ;
1390+ case AsyncWebRequestMethod::HTTP_PURGE : return T_PURGE ;
1391+ /* RFC-2068, section 19.6.1.2 */
1392+ case AsyncWebRequestMethod::HTTP_LINK : return T_LINK ;
1393+ case AsyncWebRequestMethod::HTTP_UNLINK : return T_UNLINK ;
1394+ // Unsupported
13601395 default : return T_UNKNOWN ;
13611396 }
13621397}
0 commit comments