phpCAS  version 1.4.0
Public Member Functions | List of all members
CAS_ProxiedService_Http Class Reference
Inheritance diagram for CAS_ProxiedService_Http:
CAS_ProxiedService_Http_Abstract CAS_ProxiedService_Http_Get CAS_ProxiedService_Http_Post

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 41 of file Http.php.

Member Function Documentation

◆ getResponseBody()

CAS_ProxiedService_Http::getResponseBody ( )

Answer the body of response.

Returns
string
Exceptions
CAS_OutOfSequenceExceptionIf called before the Request has been sent.

◆ getResponseHeaders()

CAS_ProxiedService_Http::getResponseHeaders ( )

Answer the headers of the response.

Returns
array An array of header strings.
Exceptions
CAS_OutOfSequenceExceptionIf called before the Request has been sent.

◆ send()

CAS_ProxiedService_Http::send ( )

Perform the request.

Returns
bool TRUE on success, FALSE on failure.
Exceptions
CAS_OutOfSequenceExceptionIf called multiple times.

◆ setUrl()

CAS_ProxiedService_Http::setUrl (   $url)

Set the URL of the Request

Parameters
string$urlUrl to set
Returns
void
Exceptions
CAS_OutOfSequenceExceptionIf called after the Request has been sent.