CurlHttpClient Class Reference
[HTTP related utilities]

Inheritance diagram for CurlHttpClient:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 setTimeout ($timeout)
 
Returns:
CurlHttpClient

 getTimeout ()
 setFollowLocation ($really)
 whether to follow header Location or not
 isFollowLocation ()
 setNoBody ($really)
 
Parameters:
$really boolean

 hasNoBody ()
 setMaxRedirects ($maxRedirects)
 
Returns:
CurlHttpClient

 getMaxRedirects ()
 setMaxFileSize ($maxFileSize)
 
Returns:
CurlHttpClient

 getMaxFileSize ()
 send (HttpRequest $request)
 
Returns:
HttpResponse


Static Public Member Functions

static create ()
 
Returns:
CurlHttpClient


Private Member Functions

 argumentsToString ($array)

Private Attributes

 $handle = null
 $timeout = null
 $followLocation = null
 $maxRedirects = null
 $maxFileSize = null
 $noBody = null


Detailed Description

Definition at line 16 of file CurlHttpClient.class.php.


Member Function Documentation

static CurlHttpClient::create (  )  [static]

Returns:
CurlHttpClient

Definition at line 28 of file CurlHttpClient.class.php.

CurlHttpClient::setTimeout ( timeout  ) 

Returns:
CurlHttpClient

Parameters:
$timeout in seconds

Implements HttpClient.

Definition at line 37 of file CurlHttpClient.class.php.

References $timeout.

CurlHttpClient::getTimeout (  ) 

Implements HttpClient.

Definition at line 43 of file CurlHttpClient.class.php.

CurlHttpClient::setFollowLocation ( really  ) 

whether to follow header Location or not

Parameters:
$really boolean
Returns:
CurlHttpClient

Implements HttpClient.

Definition at line 54 of file CurlHttpClient.class.php.

CurlHttpClient::isFollowLocation (  ) 

Implements HttpClient.

Definition at line 61 of file CurlHttpClient.class.php.

CurlHttpClient::setNoBody ( really  ) 

Parameters:
$really boolean

Returns:
CurlHttpClient

Definition at line 70 of file CurlHttpClient.class.php.

CurlHttpClient::hasNoBody (  ) 

Definition at line 77 of file CurlHttpClient.class.php.

CurlHttpClient::setMaxRedirects ( maxRedirects  ) 

Returns:
CurlHttpClient

Implements HttpClient.

Definition at line 85 of file CurlHttpClient.class.php.

References $maxRedirects.

CurlHttpClient::getMaxRedirects (  ) 

Implements HttpClient.

Definition at line 91 of file CurlHttpClient.class.php.

CurlHttpClient::setMaxFileSize ( maxFileSize  ) 

Returns:
CurlHttpClient

Definition at line 99 of file CurlHttpClient.class.php.

References $maxFileSize.

Referenced by send().

CurlHttpClient::getMaxFileSize (  ) 

Definition at line 105 of file CurlHttpClient.class.php.

CurlHttpClient::send ( HttpRequest request  ) 

Returns:
HttpResponse

Implements HttpClient.

Definition at line 113 of file CurlHttpClient.class.php.

References $handle, argumentsToString(), CurlHttpResponse::create(), HttpMethod::GET, Assert::isTrue(), HttpMethod::POST, and setMaxFileSize().

Here is the call graph for this function:

CurlHttpClient::argumentsToString ( array  )  [private]

Definition at line 181 of file CurlHttpClient.class.php.

Referenced by send().


Member Data Documentation

CurlHttpClient::$handle = null [private]

Definition at line 18 of file CurlHttpClient.class.php.

Referenced by send().

CurlHttpClient::$timeout = null [private]

Definition at line 19 of file CurlHttpClient.class.php.

Referenced by setTimeout().

CurlHttpClient::$followLocation = null [private]

Definition at line 20 of file CurlHttpClient.class.php.

CurlHttpClient::$maxRedirects = null [private]

Definition at line 21 of file CurlHttpClient.class.php.

Referenced by setMaxRedirects().

CurlHttpClient::$maxFileSize = null [private]

Definition at line 22 of file CurlHttpClient.class.php.

Referenced by setMaxFileSize().

CurlHttpClient::$noBody = null [private]

Definition at line 23 of file CurlHttpClient.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Dec 9 21:57:09 2007 for onPHP by  doxygen 1.5.4