X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_api.h;h=baa8860d13c2ec159ccdff5d9a084ab79818b799;hp=e9898cee829d6c201284cf130158b0153e43dae4;hb=4771803db3e5de9f9ef64fa926a4e11f8e892d70;hpb=f6108ad70bc06292d0982532f82b77d6e97d7e01 diff --git a/php_http_api.h b/php_http_api.h index e9898ce..baa8860 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -144,6 +144,9 @@ PHP_HTTP_API STATUS _http_split_response_ex(char *response, size_t repsonse_len, #define http_parse_headers_ex(h, l, ht, p) _http_parse_headers_ex((h), (l), (ht), (p) TSRMLS_CC) PHP_HTTP_API STATUS _http_parse_headers_ex(char *header, size_t header_len, HashTable *headers, zend_bool prettify TSRMLS_DC); +#define http_parse_cookie(c, ht) _http_parse_cookie((c), (ht) TSRMLS_CC) +PHP_HTTP_API STATUS _http_parse_cookie(const char *cookie, HashTable *values TSRMLS_DC); + #define http_get_request_headers(h) _http_get_request_headers_ex(Z_ARRVAL_P(h), 1 TSRMLS_CC) #define http_get_request_headers_ex(h, p) _http_get_request_headers_ex((h), (s) TSRMLS_CC) PHP_HTTP_API void _http_get_request_headers_ex(HashTable *headers, zend_bool prettify TSRMLS_DC);