2 +--------------------------------------------------------------------+
4 +--------------------------------------------------------------------+
5 | Redistribution and use in source and binary forms, with or without |
6 | modification, are permitted provided that the conditions mentioned |
7 | in the accompanying LICENSE file are met. |
8 +--------------------------------------------------------------------+
9 | Copyright (c) 2004-2011, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 #ifndef PHP_HTTP_REQUEST_METHOD_H
14 #define PHP_HTTP_REQUEST_METHOD_H
16 typedef enum php_http_request_method
{
17 /* force the enum to be signed */
18 PHP_HTTP_NEG_REQUEST_METHOD
=-1,
19 PHP_HTTP_NO_REQUEST_METHOD
= 0,
29 /* WebDAV - RFC 2518 */
30 PHP_HTTP_PROPFIND
= 9,
31 PHP_HTTP_PROPPATCH
= 10,
37 /* WebDAV Versioning - RFC 3253 */
38 PHP_HTTP_VERSION_CONTROL
= 16,
40 PHP_HTTP_CHECKOUT
= 18,
41 PHP_HTTP_CHECKIN
= 19,
42 PHP_HTTP_UNCHECKOUT
= 20,
43 PHP_HTTP_MKWORKSPACE
= 21,
47 PHP_HTTP_BASELINE_CONTROL
= 25,
48 PHP_HTTP_MKACTIVITY
= 26,
49 /* WebDAV Access Control - RFC 3744 */
51 PHP_HTTP_MAX_REQUEST_METHOD
= 28
52 } php_http_request_method_t
;
54 PHP_HTTP_API
const char *php_http_request_method_name(php_http_request_method_t meth TSRMLS_DC
);
55 PHP_HTTP_API STATUS
php_http_request_method_register(const char *meth_str
, size_t meth_len
, long *id TSRMLS_DC
);
57 extern zend_class_entry
*php_http_request_method_class_entry
;
58 extern zend_function_entry php_http_request_method_method_entry
[];
60 extern PHP_METHOD(HttpRequestMethod
, __construct
);
61 extern PHP_METHOD(HttpRequestMethod
, __toString
);
62 extern PHP_METHOD(HttpRequestMethod
, getId
);
64 extern PHP_METHOD(HttpRequestMethod
, exists
);
65 extern PHP_METHOD(HttpRequestMethod
, register);
67 extern PHP_MINIT_FUNCTION(http_request_method
);
76 * vim600: noet sw=4 ts=4 fdm=marker
77 * vim<600: noet sw=4 ts=4