HTTP_Client::setDefaultHeader()
HTTP_Client::setDefaultHeader() – Sets default header(s) for HTTP requests
Synopsis
require_once 'HTTP/Client.php';
void HTTP_Client::setDefaultHeader (
mixed $name
, string $value
= null
)
Описание
These are standard HTTP headers that will be sent by all created HTTP_Request objects.
Parameter
-
mixed
$name
-
header name or array ('header name' => 'header value')
-
string
$value
-
header value if $name is not an array
Throws
throws no exceptions thrown
Замечание
This function can not be called statically.