add brotli encoding
[m6w6/ext-http] / src / php_http_header.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-2014, Michael Wallner <mike@php.net> |
10 +--------------------------------------------------------------------+
11 */
12
13 #ifndef PHP_HTTP_HEADERS_H
14 #define PHP_HTTP_HEADERS_H
15
16 #include "php_http_info.h"
17
18 PHP_HTTP_API ZEND_RESULT_CODE php_http_header_parse(const char *header, size_t length, HashTable *headers, php_http_info_callback_t callback_func, void **callback_data);
19
20 PHP_HTTP_API void php_http_header_to_callback(HashTable *headers, zend_bool crlf, php_http_pass_format_callback_t cb, void *cb_arg);
21 PHP_HTTP_API void php_http_header_to_callback_ex(const char *key, zval *val, zend_bool crlf, php_http_pass_format_callback_t cb, void *cb_arg);
22 PHP_HTTP_API void php_http_header_to_string(php_http_buffer_t *str, HashTable *headers);
23 PHP_HTTP_API void php_http_header_to_string_ex(php_http_buffer_t *str, const char *key, zval *val);
24
25 PHP_HTTP_API zend_string *php_http_header_value_to_string(zval *header);
26 PHP_HTTP_API zend_string *php_http_header_value_array_to_string(zval *header);
27
28 PHP_HTTP_API zend_class_entry *php_http_header_get_class_entry(void);
29 PHP_MINIT_FUNCTION(http_header);
30
31 #endif
32
33 /*
34 * Local variables:
35 * tab-width: 4
36 * c-basic-offset: 4
37 * End:
38 * vim600: noet sw=4 ts=4 fdm=marker
39 * vim<600: noet sw=4 ts=4
40 */
41