PHP Class Horde_Http_Request_Base, horde

Author: Chuck Hagenbuch ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_headers array Request headers
$_options array

Public Methods

Method Description
__construct ( $options = [] ) Constructor
__get ( string $name ) : mixed Get an adapter parameter
__set ( string $name, mixed $value ) Set a request parameter
getDefaultOptions ( )
getHeader ( string $header ) : string Get the current value of $header
send ( ) : Horde_Http_Response_Base Send this HTTP request
setHeaders ( mixed $headers, string $value = null ) Set one or more headers
setOptions ( $options = [] )

Method Details

__construct() public method

Constructor
public __construct ( $options = [] )

__get() public method

Get an adapter parameter
public __get ( string $name ) : mixed
$name string The parameter to get.
return mixed Parameter value.

__set() public method

Set a request parameter
public __set ( string $name, mixed $value )
$name string The parameter to set.
$value mixed Parameter value.

getDefaultOptions() public method

public getDefaultOptions ( )

getHeader() public method

Get the current value of $header
public getHeader ( string $header ) : string
$header string Header name to get
return string $header's current value

send() abstract public method

Send this HTTP request
abstract public send ( ) : Horde_Http_Response_Base
return Horde_Http_Response_Base

setHeaders() public method

Set one or more headers
public setHeaders ( mixed $headers, string $value = null )
$headers mixed A hash of header + value pairs, or a single header name
$value string A header value

setOptions() public method

public setOptions ( $options = [] )

Property Details

$_headers protected_oe property

Request headers
protected array $_headers
return array

$_options protected_oe property

protected array $_options
return array