PHP Class Phalcon\Http\Client\Header

Inheritance: implements Countable
Afficher le fichier Open project: phalcon/incubator Class Usage Examples

Méthodes publiques

Свойство Type Description
$status
$statusCode
$statusMessage
$version

Méthodes publiques

Méthode Description
addMultiple ( array $fields ) Adds multiple headers.
build ( integer $flags ) : array | string
count ( ) : integer
get ( string $name ) : mixed
getAll ( ) : array
has ( string $name ) : boolean Determine if a header exists with a specific key.
parse ( $content ) : boolean
remove ( string $name )
set ( string $name, string $value )
setMultiple ( array $fields )

Method Details

addMultiple() public méthode

$headers = [ 'X-Foo' => 'bar', 'Content-Type' => 'application/json', ]; $curl->addMultiple($headers);
public addMultiple ( array $fields )
$fields array An array of name => value pairs.

build() public méthode

public build ( integer $flags ) : array | string
$flags integer
Résultat array | string

count() public méthode

public count ( ) : integer
Résultat integer

get() public méthode

public get ( string $name ) : mixed
$name string
Résultat mixed

getAll() public méthode

public getAll ( ) : array
Résultat array

has() public méthode

Determine if a header exists with a specific key.
public has ( string $name ) : boolean
$name string Key to lookup.
Résultat boolean

parse() public méthode

public parse ( $content ) : boolean
$content
Résultat boolean

remove() public méthode

public remove ( string $name )
$name string

set() public méthode

public set ( string $name, string $value )
$name string
$value string

setMultiple() public méthode

public setMultiple ( array $fields )
$fields array

Property Details

$status public_oe property

public $status

$statusCode public_oe property

public $statusCode

$statusMessage public_oe property

public $statusMessage

$version public_oe property

public $version