- add libevent support
[m6w6/ext-http] / php_http_request_api.h
index d8dac5e06fc617f80589b500596b167160da8940..22a497271d6908164b1959cf26d43dabd25d6181 100644 (file)
@@ -6,7 +6,7 @@
     | modification, are permitted provided that the conditions mentioned |
     | in the accompanying LICENSE file are met.                          |
     +--------------------------------------------------------------------+
-    | Copyright (c) 2004-2006, Michael Wallner <mike@php.net>            |
+    | Copyright (c) 2004-2007, Michael Wallner <mike@php.net>            |
     +--------------------------------------------------------------------+
 */
 
@@ -41,6 +41,11 @@ typedef struct _http_request_t {
                struct curl_slist *headers;
        } _cache;
        
+       struct {
+               uint count;
+               double delay;
+       } _retry;
+       
        char _error[CURL_ERROR_SIZE+1];
        zval *_progress_callback;
 
@@ -59,6 +64,9 @@ PHP_HTTP_API CURL *_http_curl_init_ex(CURL *ch, http_request *request TSRMLS_DC)
 #define http_curl_free(c) _http_curl_free((c) TSRMLS_CC)
 PHP_HTTP_API void _http_curl_free(CURL **ch TSRMLS_DC);
 
+#define http_curl_copy(c) _http_curl_copy((c) TSRMLS_CC)
+PHP_HTTP_API CURL *_http_curl_copy(CURL *ch TSRMLS_DC);
+
 #define http_request_new() _http_request_init_ex(NULL, NULL, 0, NULL ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC)
 #define http_request_init(r) _http_request_init_ex((r), NULL, 0, NULL ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC)
 #define http_request_init_ex(r, c, m, u) _http_request_init_ex((r), (c), (m), (u) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC TSRMLS_CC)