ok
Direktori : /opt/alt/php52/usr/include/php/ext/http/ |
Current File : //opt/alt/php52/usr/include/php/ext/http/php_http_request_object.h |
/* +--------------------------------------------------------------------+ | 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-2010, Michael Wallner <mike@php.net> | +--------------------------------------------------------------------+ */ /* $Id: php_http_request_object.h 292841 2009-12-31 08:48:57Z mike $ */ #ifndef PHP_HTTP_REQUEST_OBJECT_H #define PHP_HTTP_REQUEST_OBJECT_H #ifdef HTTP_HAVE_CURL #ifdef ZEND_ENGINE_2 #include "php_http_request_api.h" #include "php_http_request_pool_api.h" #include "php_http_request_datashare_api.h" typedef struct _http_request_object_t { zend_object zo; http_request *request; http_request_pool *pool; http_request_datashare *share; } http_request_object; extern zend_class_entry *http_request_object_ce; extern zend_function_entry http_request_object_fe[]; extern PHP_MINIT_FUNCTION(http_request_object); #define http_request_object_new(ce) _http_request_object_new((ce) TSRMLS_CC) extern zend_object_value _http_request_object_new(zend_class_entry *ce TSRMLS_DC); #define http_request_object_new_ex(ce, ch, ptr) _http_request_object_new_ex((ce), (ch), (ptr) TSRMLS_CC) extern zend_object_value _http_request_object_new_ex(zend_class_entry *ce, CURL *ch, http_request_object **ptr TSRMLS_DC); #define http_request_object_clone(zv) _http_request_object_clone_obj((zv) TSRMLS_CC) extern zend_object_value _http_request_object_clone_obj(zval *zobject TSRMLS_DC); #define http_request_object_free(o) _http_request_object_free((o) TSRMLS_CC) extern void _http_request_object_free(zend_object *object TSRMLS_DC); #define http_request_object_requesthandler(req, this) _http_request_object_requesthandler((req), (this) TSRMLS_CC) extern STATUS _http_request_object_requesthandler(http_request_object *obj, zval *this_ptr TSRMLS_DC); #define http_request_object_responsehandler(req, this) _http_request_object_responsehandler((req), (this) TSRMLS_CC) extern STATUS _http_request_object_responsehandler(http_request_object *obj, zval *this_ptr TSRMLS_DC); PHP_METHOD(HttpRequest, __construct); PHP_METHOD(HttpRequest, setOptions); PHP_METHOD(HttpRequest, getOptions); PHP_METHOD(HttpRequest, addSslOptions); PHP_METHOD(HttpRequest, setSslOptions); PHP_METHOD(HttpRequest, getSslOptions); PHP_METHOD(HttpRequest, addHeaders); PHP_METHOD(HttpRequest, getHeaders); PHP_METHOD(HttpRequest, setHeaders); PHP_METHOD(HttpRequest, addCookies); PHP_METHOD(HttpRequest, getCookies); PHP_METHOD(HttpRequest, setCookies); PHP_METHOD(HttpRequest, enableCookies); PHP_METHOD(HttpRequest, resetCookies); PHP_METHOD(HttpRequest, flushCookies); PHP_METHOD(HttpRequest, setMethod); PHP_METHOD(HttpRequest, getMethod); PHP_METHOD(HttpRequest, setUrl); PHP_METHOD(HttpRequest, getUrl); PHP_METHOD(HttpRequest, setContentType); PHP_METHOD(HttpRequest, getContentType); PHP_METHOD(HttpRequest, setQueryData); PHP_METHOD(HttpRequest, getQueryData); PHP_METHOD(HttpRequest, addQueryData); PHP_METHOD(HttpRequest, setPostFields); PHP_METHOD(HttpRequest, getPostFields); PHP_METHOD(HttpRequest, addPostFields); PHP_METHOD(HttpRequest, getBody); PHP_METHOD(HttpRequest, setBody); PHP_METHOD(HttpRequest, addBody); PHP_METHOD(HttpRequest, addPostFile); PHP_METHOD(HttpRequest, setPostFiles); PHP_METHOD(HttpRequest, getPostFiles); PHP_METHOD(HttpRequest, setPutFile); PHP_METHOD(HttpRequest, getPutFile); PHP_METHOD(HttpRequest, getPutData); PHP_METHOD(HttpRequest, setPutData); PHP_METHOD(HttpRequest, addPutData); PHP_METHOD(HttpRequest, send); PHP_METHOD(HttpRequest, getResponseData); PHP_METHOD(HttpRequest, getResponseHeader); PHP_METHOD(HttpRequest, getResponseCookies); PHP_METHOD(HttpRequest, getResponseCode); PHP_METHOD(HttpRequest, getResponseStatus); PHP_METHOD(HttpRequest, getResponseBody); PHP_METHOD(HttpRequest, getResponseInfo); PHP_METHOD(HttpRequest, getResponseMessage); PHP_METHOD(HttpRequest, getRawResponseMessage); PHP_METHOD(HttpRequest, getRequestMessage); PHP_METHOD(HttpRequest, getRawRequestMessage); PHP_METHOD(HttpRequest, getHistory); PHP_METHOD(HttpRequest, clearHistory); PHP_METHOD(HttpRequest, getMessageClass); PHP_METHOD(HttpRequest, setMessageClass); PHP_METHOD(HttpRequest, factory); #endif #endif #endif /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * End: * vim600: noet sw=4 ts=4 fdm=marker * vim<600: noet sw=4 ts=4 */