Property | Type | Description | |
---|---|---|---|
$status | |||
$statusCode | |||
$statusMessage | |||
$version |
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 ) |
$headers = [
'X-Foo' => 'bar',
'Content-Type' => 'application/json',
];
$curl->addMultiple($headers);
public addMultiple ( array $fields ) | ||
$fields | array | An array of name => value pairs. |