# 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` | #