PHP Class Phalcon\Http\Client\Header

Inheritance: implements Countable
Datei anzeigen Open project: phalcon/incubator Class Usage Examples

Public Properties

Property Type Description
$status
$statusCode
$statusMessage
$version

Public Methods

Method 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 method

$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 method

public build ( integer $flags ) : array | string
$flags integer
return array | string

count() public method

public count ( ) : integer
return integer

get() public method

public get ( string $name ) : mixed
$name string
return mixed

getAll() public method

public getAll ( ) : array
return array

has() public method

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

parse() public method

public parse ( $content ) : boolean
$content
return boolean

remove() public method

public remove ( string $name )
$name string

set() public method

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

setMultiple() public method

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