X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_api.h;h=101857e004b5ab5b2e409780508c7032aba85b71;hb=96d32e2bd4a5d2b0741addf6f59b46d7d8749937;hp=de7714c34a3a667d3ea5011990e48f0605762408;hpb=46d6daa4a43957825dafbfb8afaebf88216685e7;p=m6w6%2Fext-http diff --git a/php_http_api.h b/php_http_api.h index de7714c..101857e 100644 --- a/php_http_api.h +++ b/php_http_api.h @@ -46,6 +46,9 @@ typedef enum { } http_send_mode; /* }}} */ +/* CR LF */ +#define HTTP_CRLF "\r\n" + /* max URI length */ #define HTTP_URI_MAXLEN 2048 @@ -152,8 +155,8 @@ PHP_HTTP_API STATUS _http_chunked_decode(const char *encoded, const size_t encod #define http_split_response(r, h, b) _http_split_response((r), (h), (b) TSRMLS_CC) PHP_HTTP_API STATUS _http_split_response(const zval *zresponse, zval *zheaders, zval *zbody TSRMLS_DC); -#define http_parse_header(h, l, a) _http_parse_header((h), (l), (a) TSRMLS_CC) -PHP_HTTP_API STATUS _http_parse_header(char *header, long header_len, zval *array TSRMLS_DC); +#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); /* {{{ HAVE_CURL */ #ifdef HTTP_HAVE_CURL