public function EasyRdf_Http_Client::getHeader in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Client.php \EasyRdf_Http_Client::getHeader()
Get the value of a specific header
Note that if the header has more than one value, an array will be returned.
Parameters
string $key:
Return value
string|array|null The header value or null if it is not set
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Http/ Client.php, line 237
Class
- EasyRdf_Http_Client
- This class is an implemetation of an HTTP client in PHP. It supports basic HTTP 1.0 and 1.1 requests. For a more complete implementation try Zend_Http_Client.
Code
public function getHeader($key) {
$key = strtolower($key);
if (isset($this->headers[$key])) {
return $this->headers[$key][1];
}
else {
return null;
}
}