Overview

Namespaces

  • None
  • PHP

Classes

  • RESTian
  • RESTian_Application_Json_Parser
  • RESTian_Application_Serialized_Php_Parser
  • RESTian_Application_Xml_Parser
  • RESTian_Auth_Provider_Base
  • RESTian_Base
  • RESTian_Basic_Http_Auth_Provider
  • RESTian_Client
  • RESTian_Http_Agent_Base
  • RESTian_Not_Applicable_Provider
  • RESTian_Parser_Base
  • RESTian_Php_Curl_Http_Agent
  • RESTian_Request
  • RESTian_Response
  • RESTian_Service
  • RESTian_Settings
  • RESTian_Text_Csv_Parser
  • RESTian_Text_Html_Parser
  • RESTian_Text_Plain_Parser
  • RESTian_Var
  • RESTian_WordPress_Http_Agent
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class RESTian_Http_Agent_Base

A RESTian_Http_Agent represents the internal type of agent that calls HTTP:

'wordpress' for WordPress wp_remote_get() 'php_curl' for PHP's CURL

Having more than one agent allows RESTian to be used outside WordPress.

Direct known subclasses

RESTian_Php_Curl_Http_Agent, RESTian_WordPress_Http_Agent
Abstract
Located at base-classes/class-http-agent.php
Methods summary
public
# __construct( mixed $agent_type )

Parameters

$agent_type
mixed
$agent_type
public RESTian_Response
# make_request( RESTian_Request $request, RESTian_Response $response )

Provides a generic HTTP GET method that can call WordPress' wp_remove_get() if available, or CURL if not.

Provides a generic HTTP GET method that can call WordPress' wp_remove_get() if available, or CURL if not.

Parameters

$request
RESTian_Request
$request
$response
RESTian_Response
$response

Returns

RESTian_Response

Throws

Exception
Properties summary
public mixed $agent_type
#
public boolean $error_num false
#
public boolean $error_msg false
#
API documentation generated by ApiGen 2.8.0