X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=php_http_message.h;h=f867d3704b2a341f770bf85d91f0e4c51c602263;hb=737776929a44884a24c3e584162d771ada71f7e9;hp=1890e575bbaa4bc31326e920e611200798cabc7c;hpb=8d05291f42b3b42159b3fe91492aa4862f3d4405;p=m6w6%2Fext-http diff --git a/php_http_message.h b/php_http_message.h index 1890e57..f867d37 100644 --- a/php_http_message.h +++ b/php_http_message.h @@ -13,6 +13,8 @@ #ifndef PHP_HTTP_MESSAGE_H #define PHP_HTTP_MESSAGE_H +#include "php_http_message_body.h" + /* required minimum length of an HTTP message "HTTP/1.1" */ #define PHP_HTTP_MESSAGE_MIN_SIZE 8 #define PHP_HTTP_MESSAGE_TYPE(TYPE, msg) ((msg) && ((msg)->type == PHP_HTTP_ ##TYPE)) @@ -49,6 +51,7 @@ PHP_HTTP_API void php_http_message_set_type(php_http_message_t *m, php_http_mess PHP_HTTP_API void php_http_message_set_info(php_http_message_t *message, php_http_info_t *info); PHP_HTTP_API zval *php_http_message_header(php_http_message_t *msg, char *key_str, size_t key_len, int join); +PHP_HTTP_API zend_bool php_http_message_is_multipart(php_http_message_t *msg, char **boundary); PHP_HTTP_API void php_http_message_to_string(php_http_message_t *msg, char **string, size_t *length); PHP_HTTP_API void php_http_message_to_struct(php_http_message_t *msg, zval *strct); @@ -56,7 +59,6 @@ PHP_HTTP_API void php_http_message_to_callback(php_http_message_t *msg, php_http PHP_HTTP_API void php_http_message_serialize(php_http_message_t *message, char **string, size_t *length); PHP_HTTP_API php_http_message_t *php_http_message_reverse(php_http_message_t *msg); -PHP_HTTP_API php_http_message_t *php_http_message_interconnect(php_http_message_t *m1, php_http_message_t *m2); #define php_http_message_count(c, m) \ { \ @@ -133,6 +135,8 @@ PHP_METHOD(HttpMessage, detach); PHP_METHOD(HttpMessage, prepend); PHP_METHOD(HttpMessage, reverse); +PHP_METHOD(HttpMessage, isMultipart); +PHP_METHOD(HttpMessage, splitMultipartBody); #endif /*