X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_send_api.h;fp=php_http_send_api.h;h=98fb37b8f0692007e114f1cda3bcc5a94c8baf4a;hp=dd0b50a0db2ca9f2f8a548991519dd2b743e777b;hb=f554559b173302ed66167d8224023d05c5dabc81;hpb=d6be3873d8a3b7b7d1b0d0ab3ff2874ca9372bd8 diff --git a/php_http_send_api.h b/php_http_send_api.h index dd0b50a..98fb37b 100644 --- a/php_http_send_api.h +++ b/php_http_send_api.h @@ -39,6 +39,14 @@ PHP_HTTP_API STATUS _http_send_header_ex(const char *name, size_t name_len, cons #define http_send_status_header_ex(s, h, l, r) _http_send_status_header_ex((s), (h), (l), (r) TSRMLS_CC) PHP_HTTP_API STATUS _http_send_status_header_ex(int status, const char *header, size_t header_len, zend_bool replace TSRMLS_DC); +#define http_send_header_zval(n, z, r) http_send_header_zval_ex((n), strlen(n), (z), (r)) +#define http_send_header_zval_ex(n, l, z, r) _http_send_header_zval_ex((n), (l), (z), (r) TSRMLS_CC) +PHP_HTTP_API void _http_send_header_zval_ex(const char *name, size_t name_len, zval **val, zend_bool replace TSRMLS_DC); + +#define http_hide_header(h) http_hide_header_ex((h), strlen(h)) +#define http_hide_header_ex(h, l) _http_hide_header_ex((h), (l) TSRMLS_CC) +PHP_HTTP_API void _http_hide_header_ex(const char *name, size_t name_len TSRMLS_DC); + #define http_send_last_modified(t) _http_send_last_modified_ex((t), NULL TSRMLS_CC) #define http_send_last_modified_ex(t, s) _http_send_last_modified_ex((t), (s) TSRMLS_CC) PHP_HTTP_API STATUS _http_send_last_modified_ex(time_t t, char **sent_header TSRMLS_DC);