2 +----------------------------------------------------------------------+
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.0 of the PHP license, that |
6 | is bundled with this package in the file LICENSE, and is available |
7 | through the world-wide-web at http://www.php.net/license/3_0.txt. |
8 | If you did not receive a copy of the PHP license and are unable to |
9 | obtain it through the world-wide-web, please send a note to |
10 | license@php.net so we can mail you a copy immediately. |
11 +----------------------------------------------------------------------+
12 | Copyright (c) 2004-2005 Michael Wallner <mike@php.net> |
13 +----------------------------------------------------------------------+
18 #ifndef PHP_HTTP_MESSAGE_OBJECT_H
19 #define PHP_HTTP_MESSAGE_OBJECT_H
22 #include "php_http_message_api.h"
26 http_message
*message
;
28 } http_message_object
;
30 extern zend_class_entry
*http_message_object_ce
;
31 extern zend_function_entry http_message_object_fe
[];
33 #define http_message_object_init _http_message_object_init
34 extern void _http_message_object_init(INIT_FUNC_ARGS
);
35 #define http_message_object_new _http_message_object_new
36 extern zend_object_value
_http_message_object_new(zend_class_entry
*ce TSRMLS_DC
);
37 #define http_message_object_new_ex(ce, msg) _http_message_object_new_ex(ce, msg TSRMLS_CC)
38 #define http_message_object_from_msg(msg) _http_message_object_new_ex(http_message_object_ce, msg TSRMLS_CC)
39 extern zend_object_value
_http_message_object_new_ex(zend_class_entry
*ce
, http_message
*msg TSRMLS_DC
);
40 #define http_message_object_free _http_message_object_free
41 extern void _http_message_object_free(zend_object
*object TSRMLS_DC
);
43 #define HTTP_MSG_PROPHASH_TYPE 276192743LU
44 #define HTTP_MSG_PROPHASH_HTTP_VERSION 1138628683LU
45 #define HTTP_MSG_PROPHASH_RAW 2090679983LU
46 #define HTTP_MSG_PROPHASH_BODY 254474387LU
47 #define HTTP_MSG_PROPHASH_HEADERS 3199929089LU
48 #define HTTP_MSG_PROPHASH_NESTED_MESSAGE 3652857165LU
49 #define HTTP_MSG_PROPHASH_REQUEST_METHOD 1669022159LU
50 #define HTTP_MSG_PROPHASH_REQUEST_URI 3208695486LU
51 #define HTTP_MSG_PROPHASH_RESPONSE_STATUS 3857097400LU
52 #define HTTP_MSG_PROPHASH_RESPONSE_CODE 1305615119LU
54 PHP_METHOD(HttpMessage
, __construct
);
55 PHP_METHOD(HttpMessage
, setRaw
);
56 PHP_METHOD(HttpMessage
, getBody
);
57 PHP_METHOD(HttpMessage
, getHeaders
);
58 PHP_METHOD(HttpMessage
, getType
);
59 PHP_METHOD(HttpMessage
, getResponseCode
);
60 PHP_METHOD(HttpMessage
, getRequestMethod
);
61 PHP_METHOD(HttpMessage
, getRequestUri
);
62 PHP_METHOD(HttpMessage
, getHttpVersion
);
63 PHP_METHOD(HttpMessage
, toString
);
65 PHP_METHOD(HttpMessage
, fromString
);