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-2010, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
13 /* $Id: php_http_request_method_api.h 292841 2009-12-31 08:48:57Z mike $ */
15 #ifndef PHP_HTTP_REQUEST_METHOD_H
16 #define PHP_HTTP_REQUEST_METHOD_H
18 typedef enum php_http_request_method
{
19 /* force the enum to be signed */
20 PHP_HTTP_NEG_REQUEST_METHOD
=-1,
21 PHP_HTTP_NO_REQUEST_METHOD
= 0,
31 /* WebDAV - RFC 2518 */
32 PHP_HTTP_PROPFIND
= 9,
33 PHP_HTTP_PROPPATCH
= 10,
39 /* WebDAV Versioning - RFC 3253 */
40 PHP_HTTP_VERSION_CONTROL
= 16,
42 PHP_HTTP_CHECKOUT
= 18,
43 PHP_HTTP_CHECKIN
= 19,
44 PHP_HTTP_UNCHECKOUT
= 20,
45 PHP_HTTP_MKWORKSPACE
= 21,
49 PHP_HTTP_BASELINE_CONTROL
= 25,
50 PHP_HTTP_MKACTIVITY
= 26,
51 /* WebDAV Access Control - RFC 3744 */
53 PHP_HTTP_MAX_REQUEST_METHOD
= 28
54 } php_http_request_method_t
;
56 PHP_HTTP_API
const char *php_http_request_method_name(php_http_request_method_t meth
);
57 PHP_HTTP_API STATUS
php_http_request_method_register(const char *meth_str
, size_t meth_len
, long *id TSRMLS_DC
);
59 extern zend_class_entry
*php_http_request_method_class_entry
;
60 extern zend_function_entry php_http_request_method_method_entry
[];
62 extern PHP_METHOD(HttpRequestMethod
, __construct
);
63 extern PHP_METHOD(HttpRequestMethod
, __toString
);
64 extern PHP_METHOD(HttpRequestMethod
, getId
);
66 extern PHP_METHOD(HttpRequestMethod
, exists
);
67 extern PHP_METHOD(HttpRequestMethod
, register);
69 extern PHP_MINIT_FUNCTION(http_request_method
);
78 * vim600: noet sw=4 ts=4 fdm=marker
79 * vim<600: noet sw=4 ts=4