/
yaf_response_http.h
40 lines (32 loc) · 1.63 KB
/
yaf_response_http.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
+----------------------------------------------------------------------+
| Yet Another Framework |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| license@php.net so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: Xinchen Hui <laruence@php.net> |
+----------------------------------------------------------------------+
*/
#ifndef PHP_YAF_RESPONSE_HTTP_H
#define PHP_YAF_RESPONSE_HTTP_H
#define YAF_RESPONSE_PROPERTY_NAME_RESPONSECODE "_response_code"
extern zend_class_entry *yaf_response_http_ce;
int yaf_response_alter_header(yaf_response_t *response, char *name, uint name_len, char *value, long value_len, uint rep TSRMLS_DC);
zval * yaf_response_get_header(yaf_response_t *response, char *name, uint name_len TSRMLS_DC);
int yaf_response_clear_header(yaf_response_t *response, char *name, uint name_len TSRMLS_DC);
YAF_STARTUP_FUNCTION(response_http);
#endif
/*
* Local variables:
* tab-width: 4
* c-basic-offset: 4
* End:
* vim600: noet sw=4 ts=4 fdm=marker
* vim<600: noet sw=4 ts=4
*/