projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
* split into more reasonable modules
[m6w6/ext-http]
/
php_http.h
diff --git
a/php_http.h
b/php_http.h
index 0de3905e957ec065c36b6c15b8d05db9c4bbe8d5..3a46a7216d9c112a15f3fa30bebbbdf4d87d9b69 100644
(file)
--- a/
php_http.h
+++ b/
php_http.h
@@
-38,12
+38,25
@@
extern zend_module_entry http_module_entry;
# include "php_http_build_query.h"
#else
# include "php_http_build_query.h"
#else
+typedef struct {
+ zend_object zo;
+} httpi_response_object;
+
#ifdef HTTP_HAVE_CURL
#ifdef HTTP_HAVE_CURL
+
+#include <curl/curl.h>
+
+typedef struct {
+ zend_object zo;
+ CURL *ch;
+} httpi_request_object;
+
typedef enum {
HTTP_GET,
HTTP_HEAD,
HTTP_POST,
} http_request_method;
typedef enum {
HTTP_GET,
HTTP_HEAD,
HTTP_POST,
} http_request_method;
+
#endif
PHP_METHOD(HTTPi, date);
#endif
PHP_METHOD(HTTPi, date);
@@
-176,16
+189,10
@@
ZEND_BEGIN_MODULE_GLOBALS(http)
char *allowed_methods;
#ifdef HTTP_HAVE_CURL
struct {
char *allowed_methods;
#ifdef HTTP_HAVE_CURL
struct {
- struct {
- char *data;
- size_t used;
- size_t free;
- } body;
- struct {
- char *data;
- size_t used;
- size_t free;
- } hdrs;
+ char *data;
+ size_t used;
+ size_t free;
+ size_t size;
} curlbuf;
#endif
ZEND_END_MODULE_GLOBALS(http)
} curlbuf;
#endif
ZEND_END_MODULE_GLOBALS(http)