Fix error: redefinition of typedef 'php_http_message_t' during RHEL build
[m6w6/ext-http] / php_http_request_method.h
1 /*
2 +--------------------------------------------------------------------+
3 | PECL :: http |
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 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_REQUEST_METHOD_H
14 #define PHP_HTTP_REQUEST_METHOD_H
15
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,
20 /* HTTP/1.1 */
21 PHP_HTTP_GET = 1,
22 PHP_HTTP_HEAD = 2,
23 PHP_HTTP_POST = 3,
24 PHP_HTTP_PUT = 4,
25 PHP_HTTP_DELETE = 5,
26 PHP_HTTP_OPTIONS = 6,
27 PHP_HTTP_TRACE = 7,
28 PHP_HTTP_CONNECT = 8,
29 /* WebDAV - RFC 2518 */
30 PHP_HTTP_PROPFIND = 9,
31 PHP_HTTP_PROPPATCH = 10,
32 PHP_HTTP_MKCOL = 11,
33 PHP_HTTP_COPY = 12,
34 PHP_HTTP_MOVE = 13,
35 PHP_HTTP_LOCK = 14,
36 PHP_HTTP_UNLOCK = 15,
37 /* WebDAV Versioning - RFC 3253 */
38 PHP_HTTP_VERSION_CONTROL = 16,
39 PHP_HTTP_REPORT = 17,
40 PHP_HTTP_CHECKOUT = 18,
41 PHP_HTTP_CHECKIN = 19,
42 PHP_HTTP_UNCHECKOUT = 20,
43 PHP_HTTP_MKWORKSPACE = 21,
44 PHP_HTTP_UPDATE = 22,
45 PHP_HTTP_LABEL = 23,
46 PHP_HTTP_MERGE = 24,
47 PHP_HTTP_BASELINE_CONTROL = 25,
48 PHP_HTTP_MKACTIVITY = 26,
49 /* WebDAV Access Control - RFC 3744 */
50 PHP_HTTP_ACL = 27,
51 PHP_HTTP_MAX_REQUEST_METHOD = 28
52 } php_http_request_method_t;
53
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);
56
57 extern zend_class_entry *php_http_request_method_class_entry;
58 extern zend_function_entry php_http_request_method_method_entry[];
59
60 extern PHP_METHOD(HttpRequestMethod, __construct);
61 extern PHP_METHOD(HttpRequestMethod, __toString);
62 extern PHP_METHOD(HttpRequestMethod, getId);
63
64 extern PHP_METHOD(HttpRequestMethod, exists);
65 extern PHP_METHOD(HttpRequestMethod, register);
66
67 extern PHP_MINIT_FUNCTION(http_request_method);
68
69 #endif
70
71 /*
72 * Local variables:
73 * tab-width: 4
74 * c-basic-offset: 4
75 * End:
76 * vim600: noet sw=4 ts=4 fdm=marker
77 * vim<600: noet sw=4 ts=4
78 */
79