X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=9055e6616e4d1f2f40e8f49aa028ab52a42d1aa9;hp=8ca390d12a2d21ac668da5764b680138dae98a9e;hb=650c6baa73c73a9f079eee2cfcade5a98a7fc2f5;hpb=d9a5eb7f270247c44f4ff78c1f5d03d520e8fec0 diff --git a/php_http_api.h b/php_http_api.h index 8ca390d..9055e66 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -158,6 +158,9 @@ PHP_HTTP_API STATUS _http_split_response(const zval *zresponse, zval *zheaders, #define http_parse_headers(h, l, a) _http_parse_headers((h), (l), (a) TSRMLS_CC) PHP_HTTP_API STATUS _http_parse_headers(char *header, int header_len, zval *array TSRMLS_DC); +#define http_get_request_headers(h) _http_get_request_headers((h) TSRMLS_CC) +PHP_HTTP_API void _http_get_request_headers(zval *array TSRMLS_DC); + /* {{{ HAVE_CURL */ #ifdef HTTP_HAVE_CURL @@ -180,7 +183,7 @@ PHP_HTTP_API STATUS _http_post_array(const char *URL, HashTable *postarray, Hash PHP_HTTP_API STATUS _http_auth_credentials(char **user, char **pass TSRMLS_DC); #define http_auth_header(t, r) _http_auth_header((t), (r) TSRMLS_CC) -PHP_HTTP_API void _http_auth_header(const char *type, const char *realm TSRMLS_DC); +PHP_HTTP_API STATUS _http_auth_header(const char *type, const char *realm TSRMLS_DC); /* }}} */