Public Member Functions

CAS_ProxiedService_Http Interface Reference

Inheritance diagram for CAS_ProxiedService_Http:
CAS_ProxiedService_Http_Abstract CAS_ProxiedService_Http_Get CAS_ProxiedService_Http_Post

List of all members.

Public Member Functions

 setUrl ($url)
 send ()
 getResponseHeaders ()
 getResponseBody ()

Detailed Description

This interface defines methods that clients should use for configuring, sending, and receiving proxied HTTP requests.

Definition at line 35 of file Http.php.


Member Function Documentation

CAS_ProxiedService_Http::getResponseBody (  ) 

Answer the body of response.

Returns:
string
Exceptions:
CAS_OutOfSequenceException If called before the Request has been sent.

Implemented in CAS_ProxiedService_Http_Abstract.

CAS_ProxiedService_Http::getResponseHeaders (  ) 

Answer the headers of the response.

Returns:
array An array of header strings.
Exceptions:
CAS_OutOfSequenceException If called before the Request has been sent.

Implemented in CAS_ProxiedService_Http_Abstract.

CAS_ProxiedService_Http::send (  ) 

Perform the request.

Returns:
boolean TRUE on success, FALSE on failure.
Exceptions:
CAS_OutOfSequenceException If called multiple times.

Implemented in CAS_ProxiedService_Http_Abstract.

CAS_ProxiedService_Http::setUrl ( url  ) 

Set the URL of the Request

Parameters:
string $url
Returns:
void
Exceptions:
CAS_OutOfSequenceException If called after the Request has been sent.

Implemented in CAS_ProxiedService_Http_Abstract.