- reflection awareness of HttpRequest
[m6w6/ext-http] / php_http_response_object.h
1 /*
2 +----------------------------------------------------------------------+
3 | PECL :: http |
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 +----------------------------------------------------------------------+
14 */
15
16 /* $Id$ */
17
18 #ifndef PHP_HTTP_RESPONSE_OBJECT_H
19 #define PHP_HTTP_RESPONSE_OBJECT_H
20 #ifdef ZEND_ENGINE_2
21
22 typedef struct {
23 zend_object zo;
24 } http_response_object;
25
26 extern zend_class_entry *http_response_object_ce;
27 extern zend_function_entry http_response_object_fe[];
28
29 #define http_response_object_init() _http_response_object_init(INIT_FUNC_ARGS_PASSTHRU)
30 extern void _http_response_object_init(INIT_FUNC_ARGS);
31 #define http_response_object_new _http_response_object_new
32 extern zend_object_value _http_response_object_new(zend_class_entry *ce TSRMLS_DC);
33 #define http_response_object_free _http_response_object_free
34 extern void _http_response_object_free(zend_object *object TSRMLS_DC);
35
36 #define http_response_object_sendhandler(z, o, c, r) _http_response_object_sendhandler((z), (o), (c), (r) TSRMLS_CC)
37 extern void _http_response_object_sendhandler(zval *this_ptr, http_response_object *obj, zend_bool clean_ob, zval *return_value TSRMLS_DC);
38
39 PHP_METHOD(HttpResponse, __construct);
40 PHP_METHOD(HttpResponse, __destruct);
41 PHP_METHOD(HttpResponse, setETag);
42 PHP_METHOD(HttpResponse, getETag);
43 PHP_METHOD(HttpResponse, setContentDisposition);
44 PHP_METHOD(HttpResponse, getContentDisposition);
45 PHP_METHOD(HttpResponse, setContentType);
46 PHP_METHOD(HttpResponse, getContentType);
47 PHP_METHOD(HttpResponse, setCache);
48 PHP_METHOD(HttpResponse, getCache);
49 PHP_METHOD(HttpResponse, setCacheControl);
50 PHP_METHOD(HttpResponse, getCacheControl);
51 PHP_METHOD(HttpResponse, setGzip);
52 PHP_METHOD(HttpResponse, getGzip);
53 PHP_METHOD(HttpResponse, setThrottleDelay);
54 PHP_METHOD(HttpResponse, getThrottleDelay);
55 PHP_METHOD(HttpResponse, setSendBuffersize);
56 PHP_METHOD(HttpResponse, getSendBuffersize);
57 PHP_METHOD(HttpResponse, setData);
58 PHP_METHOD(HttpResponse, getData);
59 PHP_METHOD(HttpResponse, setFile);
60 PHP_METHOD(HttpResponse, getFile);
61 PHP_METHOD(HttpResponse, setStream);
62 PHP_METHOD(HttpResponse, getStream);
63 PHP_METHOD(HttpResponse, send);
64 PHP_METHOD(HttpResponse, catchOutput);
65
66 #endif
67 #endif
68
69 /*
70 * Local variables:
71 * tab-width: 4
72 * c-basic-offset: 4
73 * End:
74 * vim600: noet sw=4 ts=4 fdm=marker
75 * vim<600: noet sw=4 ts=4
76 */
77