phpCAS version 1.3.6

Public Member Functions | List of all members
CAS_ProxiedService_Http Class Reference
Inheritance diagram for CAS_ProxiedService_Http:

## 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_OutOfSequenceException | If 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_OutOfSequenceException | If 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_OutOfSequenceException | If called multiple times.

## ◆ setUrl()

CAS_ProxiedService_Http::setUrl | ( |  | $url | ) |

Set the URL of the Request

Parameters

  string | $url | Url to set

Returns
  void

Exceptions

  CAS_OutOfSequenceException | If called after the Request has been sent.