Class AkHttpClient

(line 4)

Description

AkObject
   |
   --AkHttpClient

Located in File: /AkHttpClient.php

Allows for __construct and __destruct to be used in PHP4.

A hack to support __construct() on PHP 4 Hint: descendant classes have no PHP4 class_name() constructors, so this one gets called first and calls the top-layer __construct() which (if present) should call parent::__construct()



Class Variables

Summary:
mixed $error
mixed $HttpRequest
mixed $Response

$error (line 7)

Data type : mixed

$HttpRequest (line 6)

Data type : mixed

$Response (line 8)

Data type : mixed

Class Constants

Summary:

Method Detail

Summary:
void addHeader ( $name,  $value)
void addHeaders ( $headers)
void addParams ([ $params = array()])
void customRequest ( $url, [ $http_verb = 'GET'], [ $options = array()], [ $body = ''])
void delete ( $url, [ $options = array()])
void get ( $url, [ $options = array()])
void getParamsOnUrl ( $url)
void getRequestInstance ( $url, [ $http_verb = 'GET'], [ $options = array()], [ $body = ''])
void getResponseCode ()
void getResponseHeader ( $name)
void getUrlWithParams ( $url,  $params)
void post ( $url, [ $options = array()], [ $body = ''])
void put ( $url, [ $options = array()], [ $body = ''])
void sendRequest ([ $return_body = true])
void setBody ( $body)
void urlExists ( $url)
void _httpRenderQuery ( $parts)
void _setParamsForDelete ( &$url,  &$params)
void _setParamsForGet ( &$url,  &$params)
void _setParamsForPost ( &$url,  &$params)
void _setParamsForPut ( &$url,  &$params)

Method addHeader (line 85)

void addHeader( $name, $value)

Parameters

  • $name:
  • $value:

Info

Method addHeaders (line 78)

void addHeaders( $headers)

Parameters

  • $headers:

Info

Method addParams (line 106)

void addParams( [ $params = array()])

Parameters

  • $params:

Info

Method customRequest (line 32)

void customRequest( $url, [ $http_verb = 'GET'], [ $options = array()], [ $body = ''])

Parameters

  • $url:
  • $http_verb:
  • $options:
  • $body:

Info

Method delete (line 25)

void delete( $url, [ $options = array()])

Parameters

  • $url:
  • $options:

Info

Method get (line 10)

void get( $url, [ $options = array()])

Parameters

  • $url:
  • $options:

Info

Method getParamsOnUrl (line 138)

void getParamsOnUrl( $url)

Parameters

  • $url:

Info

Method getRequestInstance (line 45)

void getRequestInstance( $url, [ $http_verb = 'GET'], [ $options = array()], [ $body = ''])

Parameters

  • $url:
  • $http_verb:
  • $options:
  • $body:

Info

Method getResponseCode (line 101)

void getResponseCode( )

Info

Method getResponseHeader (line 91)

void getResponseHeader( $name)

Parameters

  • $name:

Info

Method getResponseHeaders (line 96)

void getResponseHeaders( )

Info

Method getUrlWithParams (line 150)

void getUrlWithParams( $url, $params)

Parameters

  • $url:
  • $params:

Info

Method post (line 15)

void post( $url, [ $options = array()], [ $body = ''])

Parameters

  • $url:
  • $options:
  • $body:

Info

Method put (line 20)

void put( $url, [ $options = array()], [ $body = ''])

Parameters

  • $url:
  • $options:
  • $body:

Info

Method sendRequest (line 121)

void sendRequest( [ $return_body = true])

Parameters

  • $return_body:

Info

Method setBody (line 115)

void setBody( $body)

Parameters

  • $body:

Info

Method urlExists (line 38)

void urlExists( $url)

Parameters

  • $url:

Info

Method _extractUserNameAndPasswordFromUrl (line 133)

void _extractUserNameAndPasswordFromUrl( &$url)

Parameters

  • &$url:

Info

Method _httpRenderQuery (line 185)

void _httpRenderQuery( $parts)

Parameters

  • $parts:

Info

Method _setParamsForDelete (line 178)

void _setParamsForDelete( &$url, &$params)

Parameters

  • &$url:
  • &$params:

Info

Method _setParamsForGet (line 158)

void _setParamsForGet( &$url, &$params)

Parameters

  • &$url:
  • &$params:

Info

Method _setParamsForPost (line 168)

void _setParamsForPost( &$url, &$params)

Parameters

  • &$url:
  • &$params:

Info

Method _setParamsForPut (line 173)

void _setParamsForPut( &$url, &$params)

Parameters

  • &$url:
  • &$params:

Info

Inherited Variables

Inherited Class Variable Summary

Inherited Methods

Inherited Method Summary

Inherited From Class AkObject

AkObject::AkObject() - A hack to support __construct() on PHP 4

AkObject::__construct() - Class constructor, overriden in descendant classes

AkObject::freeMemory() - Unsets circular reference children that are not freed from memory when calling unset() or when the parent object is garbage collected.

AkObject::log() -

AkObject::toString() - Object-to-string conversion

AkObject::__clone() - Clone class (Zend Engine 2 compatibility trick)

AkObject::__destruct() - Class destructor, overriden in descendant classes

AkObject::__toString() -



Documentation generated on Tue, 17 Jun 2008 14:25:39 +0200 by phpDocumentor 1.3.2