Properties
Properties existing in the Solar_Http_Request_Adapter
class.
Public
$content
(string|array) Content to send along with the request.
If an array, will be encoded with http_build_query() at fetch() time.
Protected
$_Solar_Http_Request_Adapter
(array) Default configuration values.
$_charset
(string) The character-set for the body content.
$_config
(array) Collection point for configuration values.
Inherited from Solar_Base.
Note that you do not define config defaults in $_config directly.
<?php
// DO NOT DO THIS
protected $_config = array(
'foo' => 'bar',
'baz' => 'dib',
);
Instead, define config defaults in a protected property named for the class, withan underscore prefix.
For exmple, a "Vendor_Class_Name" class would define the default config array in "$_Vendor_Class_Name". This convention lets child classes inherit parent config keys and values.
<?php
// DO THIS INSTEAD
protected $_Vendor_Class_Name = array(
'foo' => 'bar',
'baz' => 'dib',
);
$_content_type
(string) The content-type for the body content.
$_headers
(array) Additional headers to send with the request.
$_max_redirects
(int) The maximum number of redirects to allow.
$_method
(string) The HTTP method to use for the request (GET, POST, etc).
$_proxy
(string) Pass all HTTP requests through this proxy.
$_referer
(Solar_Uri) The URI this request came from (if any).
$_ssl_cafile
(string) Location of Certificate Authority file on local filesystem which should be used with the $_ssl_verify_peer option to authenticate the identity of the remote peer.
$_ssl_capath
(string) If $_ssl_cafile is not specified or if the certificate is not found there, this directory path is searched for a suitable certificate.
The path must be a correctly hashed certificate directory.
$_ssl_local_cert
(string) Path to local certificate file on filesystem.
This must be a PEM encoded file which contains your certificate and private key. It can optionally contain the certificate chain of issuers.
$_ssl_passphrase
(string) Passphrase with which the $_ssl_local_cert file was encoded.
$_ssl_verify_peer
(bool) Require verification of SSL certificate used?
$_timeout
(string) Let the request time out after this many seconds.
$_uri
(Solar_Uri) The URI for the request.
$_user_agent
(string) The User-Agent header value to send.
$_version
(string) The HTTP protocol version to use (1.0 or 1.1).
Private
None.