X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=php_http_request_object.h;h=12769f5f43106a5c46c0d84bc489757d9a2f2c97;hb=e83a7438dc70ed96630887246a1d3aefcf155b1c;hp=11f78c56482d7ec84f8f9d925ce2c6714c4a812b;hpb=d83edb65a0097de2d5baa1a9fd9dbcebed34cc79;p=m6w6%2Fext-http diff --git a/php_http_request_object.h b/php_http_request_object.h index 11f78c5..12769f5 100644 --- a/php_http_request_object.h +++ b/php_http_request_object.h @@ -1,16 +1,13 @@ /* - +----------------------------------------------------------------------+ - | PECL :: http | - +----------------------------------------------------------------------+ - | This source file is subject to version 3.0 of the PHP license, that | - | is bundled with this package in the file LICENSE, and is available | - | through the world-wide-web at http://www.php.net/license/3_0.txt. | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Copyright (c) 2004-2005 Michael Wallner | - +----------------------------------------------------------------------+ + +--------------------------------------------------------------------+ + | PECL :: http | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted provided that the conditions mentioned | + | in the accompanying LICENSE file are met. | + +--------------------------------------------------------------------+ + | Copyright (c) 2004-2005, Michael Wallner | + +--------------------------------------------------------------------+ */ /* $Id$ */ @@ -42,12 +39,14 @@ typedef struct { extern zend_class_entry *http_request_object_ce; extern zend_function_entry http_request_object_fe[]; -#define http_request_object_init() _http_request_object_init(INIT_FUNC_ARGS_PASSTHRU) -extern void _http_request_object_init(INIT_FUNC_ARGS); +extern PHP_MINIT_FUNCTION(http_request_object); + #define http_request_object_new _http_request_object_new extern zend_object_value _http_request_object_new(zend_class_entry *ce TSRMLS_DC); #define http_request_object_free _http_request_object_free extern void _http_request_object_free(zend_object *object TSRMLS_DC); +#define http_request_object_clone(o) _http_request_object_clone((o) TSRMLS_CC) +extern zend_object_value _http_request_object_clone(zval *object TSRMLS_DC); #define http_request_object_requesthandler(req, this, body) _http_request_object_requesthandler((req), (this), (body) TSRMLS_CC) extern STATUS _http_request_object_requesthandler(http_request_object *obj, zval *this_ptr, http_request_body *body TSRMLS_DC); @@ -78,6 +77,9 @@ PHP_METHOD(HttpRequest, addQueryData); PHP_METHOD(HttpRequest, setPostFields); PHP_METHOD(HttpRequest, getPostFields); PHP_METHOD(HttpRequest, addPostFields); +PHP_METHOD(HttpRequest, getRawPostData); +PHP_METHOD(HttpRequest, setRawPostData); +PHP_METHOD(HttpRequest, addRawPostData); PHP_METHOD(HttpRequest, addPostFile); PHP_METHOD(HttpRequest, setPostFiles); PHP_METHOD(HttpRequest, getPostFiles); @@ -93,6 +95,7 @@ PHP_METHOD(HttpRequest, getResponseInfo); PHP_METHOD(HttpRequest, getResponseMessage); PHP_METHOD(HttpRequest, getRequestMessage); PHP_METHOD(HttpRequest, getHistory); +PHP_METHOD(HttpRequest, clearHistory); PHP_METHOD(HttpRequest, get); PHP_METHOD(HttpRequest, head);