ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
CAS_ProxiedService_Http Class Reference

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

+ Inheritance diagram for CAS_ProxiedService_Http:
+ Collaboration diagram for CAS_ProxiedService_Http:

Public Member Functions

 setUrl ($url)
 Set the URL of the Request. More...
 
 send ()
 Perform the request. More...
 
 getResponseHeaders ()
 Answer the headers of the response. More...
 
 getResponseBody ()
 Answer the body of response. More...
 

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.

The documentation for this class was generated from the following file: