PHP Class Horde_Http_Request_Base, horde

Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_headers array Request headers
$_options array

Méthodes publiques

Méthode 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 méthode

Constructor
public __construct ( $options = [] )

__get() public méthode

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

__set() public méthode

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

getDefaultOptions() public méthode

public getDefaultOptions ( )

getHeader() public méthode

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

send() abstract public méthode

Send this HTTP request
abstract public send ( ) : Horde_Http_Response_Base
Résultat Horde_Http_Response_Base

setHeaders() public méthode

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 méthode

public setOptions ( $options = [] )

Property Details

$_headers protected_oe property

Request headers
protected array $_headers
Résultat array

$_options protected_oe property

protected array $_options
Résultat array