- add http_put_data() and HttpRequest::(set|get|add)PutData()
[m6w6/ext-http] / php_http_request_body_api.h
index 88d1d0f53c17715bac59928315202b0842b1aed8..346544dfc193fac9857e0d7f52a36ed4aa572126 100644 (file)
 
 #ifdef HTTP_HAVE_CURL
 
+#define HTTP_REQUEST_BODY_EMPTY                        0
 #define HTTP_REQUEST_BODY_CSTRING              1
 #define HTTP_REQUEST_BODY_CURLPOST             2
 #define HTTP_REQUEST_BODY_UPLOADFILE   3
 typedef struct {
-       uint type:31;
+       uint type:3;
        uint free:1;
+       uint priv:28;
        void *data;
        size_t size;
 } http_request_body;