X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_std_defs.h;h=953d4ac22e6db6a7d04ed65eb9bf47176b6d2975;hp=a15a32acd61e11309b80ae91cf60ecb99d55b2ec;hb=e434da0fad7db62d86c236c68b22150165f2647a;hpb=7ead3beaa8b181edbf99123b8e3af696f60cb403 diff --git a/php_http_std_defs.h b/php_http_std_defs.h index a15a32a..953d4ac 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -59,9 +59,26 @@ typedef int STATUS; /* CURL buffer size */ #define HTTP_CURLBUF_SIZE 16384 +/* known methods */ +#define HTTP_KNOWN_METHODS \ + /* HTTP 1.1 */ \ + "GET, HEAD, POST, PUT, DELETE, OPTIONS, TRACE, CONNECT, " \ + /* WebDAV - RFC 2518 */ \ + "PROPFIND, PROPPATCH, MKCOL, COPY, MOVE, LOCK, UNLOCK, " \ + /* WebDAV Versioning - RFC 3253 */ \ + "VERSION-CONTROL, REPORT, CHECKOUT, CHECKIN, UNCHECKOUT, " \ + "MKWORKSPACE, UPDATE, LABEL, MERGE, BASELINE-CONTROL, MKACTIVITY, " \ + /* WebDAV Access Control - RFC 3744 */ \ + "ACL, " \ + /* END */ + + /* server vars shorthand */ #define HTTP_SERVER_VARS Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_SERVER]) +#define HTTP_INI_ENTRY(entry, default, scope, global) \ + STD_PHP_INI_ENTRY(entry, default, scope, http_update_##global, global, zend_http_globals, http_globals) + /* {{{ arrays */ #define FOREACH_VAL(array, val) FOREACH_HASH_VAL(Z_ARRVAL_P(array), val) #define FOREACH_HASH_VAL(hash, val) \