fix problem when finishing a chunked encoding stream
[m6w6/ext-http] / php_http_params.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_api.h 298891 2010-05-03 08:26:38Z mike $ */
14
15 #ifndef PHP_HTTP_PARAMS_H
16 #define PHP_HTTP_PARAMS_H
17
18 #define PHP_HTTP_PARAMS_ALLOW_COMMA 0x01
19 #define PHP_HTTP_PARAMS_ALLOW_FAILURE 0x02
20 #define PHP_HTTP_PARAMS_RAISE_ERROR 0x04
21 #define PHP_HTTP_PARAMS_DEFAULT (PHP_HTTP_PARAMS_ALLOW_COMMA|PHP_HTTP_PARAMS_ALLOW_FAILURE|PHP_HTTP_PARAMS_RAISE_ERROR)
22 #define PHP_HTTP_PARAMS_COLON_SEPARATOR 0x10
23
24 typedef void (*php_http_params_parse_func_t)(void *cb_arg, const char *key, int keylen, const char *val, int vallen TSRMLS_DC);
25
26 PHP_HTTP_API void php_http_params_parse_default_func(void *ht, const char *key, int keylen, const char *val, int vallen TSRMLS_DC);
27 PHP_HTTP_API STATUS php_http_params_parse(const char *params, int flags, php_http_params_parse_func_t cb, void *cb_arg TSRMLS_DC);
28
29 #endif
30
31 /*
32 * Local variables:
33 * tab-width: 4
34 * c-basic-offset: 4
35 * End:
36 * vim600: noet sw=4 ts=4 fdm=marker
37 * vim<600: noet sw=4 ts=4
38 */
39