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