API Joomla 1.5.26
Documentation des API du CMS Joomla en version 1.5
|
php_http_client_generic::connect | ( | ) |
Establishes a client connection
Références headers, et php_http_request::setHeader().
Référencé par get(), head(), et post().
php_http_client_generic::decodeChunkedData | ( | $ | data | ) |
Decodes data if transfer encoding chunked
string | The encoded data |
Références $data.
Référencé par normalizeResponseIfChunked().
php_http_client_generic::defaultHTTPEventHandler | ( | $ | data | ) |
The default http event handler; fired if no custom handler has been registered
string | The event data |
Références $data, et printHTML().
php_http_client_generic::disconnect | ( | ) |
Disconnects the current client connection if one exists
php_http_client_generic::fireEvent | ( | $ | target, |
$ | data | ||
) |
php_http_client_generic::generateResponseHeadersAsObject | ( | $ | responseHeadersAsObject | ) |
Specifies that the response headers array should be generated
boolean | True if the response headers array should be built |
Références $responseHeadersAsObject.
& php_http_client_generic::get | ( | $ | url | ) |
Performs an HTTP GET
string | The target url |
Références $url, connect(), get_custom(), send(), php_http_request::setRequestMethod(), et php_http_request::setRequestPath().
php_http_client_generic::get_custom | ( | $ | url | ) |
Handler for customizing the HTTP GET call
string | The target url |
Réimplémentée dans php_http_proxy.
Référencé par get().
php_http_client_generic::getHTTPEvent | ( | $ | option | ) |
Evaluates whether the specified http event option is active
string | The http event option to evaluate |
Références $option.
& php_http_client_generic::head | ( | $ | url | ) |
Performs an HTTP HEAD
string | The target url |
Références $url, connect(), head_custom(), send(), et php_http_request::setRequestMethod().
php_http_client_generic::head_custom | ( | $ | url | ) |
Handler for customizing the HTTP HEAD call
string | The target url |
Référencé par head().
php_http_client_generic::isConnected | ( | ) |
Evaluated whether the current client is connected
php_http_client_generic::normalizeResponseIfChunked | ( | ) |
Determines if response data is transfer encoding chunked, then decodes
Références decodeChunkedData().
Référencé par send().
php_http_client_generic::php_http_client_generic | ( | $ | host = '' , |
$ | path = '/' , |
||
$ | port = 80 , |
||
$ | timeout = 0 |
||
) |
HTTP Client constructor
string | The client connection host name, with or without its protocol prefix |
string | The client connection path, not including the host name |
int | The port to establish the client connection on |
int | The timeout value for the client connection |
Références $host, $path, headers, et php_http_request::setHeaders().
Référencé par php_http_proxy::php_http_proxy().
& php_http_client_generic::post | ( | $ | data | ) |
Performs an HTTP POST
string | The posted data |
Références $data, connect(), post_custom(), send(), php_http_request::setHeader(), et php_http_request::setRequestMethod().
php_http_client_generic::post_custom | ( | $ | data | ) |
Handler for customizing the HTTP POST call
string | The post data |
Référencé par post().
php_http_client_generic::printHTML | ( | $ | html | ) |
Prints the data to the browser as preformatted, htmlentified output
string | The data to be printed |
Référencé par defaultHTTPEventHandler().
php_http_client_generic::send | ( | $ | message | ) |
Sends data through the client connection
string | The message to be sent |
Références $data, php_http_request::$headers, $response, fireEvent(), headers, normalizeResponseIfChunked(), et HTTPExceptions::raiseException().
Référencé par get(), head(), et post().
php_http_client_generic::setHTTPEvent | ( | $ | option, |
$ | truthVal, | ||
$ | customHandler = null |
||
) |
Sets which http events are to be fired
string | The http event option to be set |
string | True if the event is to be fired |
object | A reference to a custom handler for the http event data |
Références $option.
php_http_client_generic::$connection |
php_http_client_generic::$events |
array('onRequest' => null, 'onRead' => null, 'onResponse' => null, 'onResponseHeaders' => null, 'onResponseBody' => null)
php_http_client_generic::$response = null |
Référencé par send().
php_http_client_generic::$responseHeadersAsObject = false |
Référencé par generateResponseHeadersAsObject().