public function EasyRdf_Http_Response::getHeader in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php \EasyRdf_Http_Response::getHeader()
Get a specific header as string, or null if it is not set
Parameters
string$header:
Return value
string|array|null
1 call to EasyRdf_Http_Response::getHeader()
- EasyRdf_Http_Response::getBody in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Http/ Response.php - Get the response body as string
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Http/ Response.php, line 221
Class
- EasyRdf_Http_Response
- Class that represents an HTTP 1.0 / 1.1 response message.
Code
public function getHeader($header) {
$header = ucwords(strtolower($header));
if (array_key_exists($header, $this->headers)) {
return $this->headers[$header];
}
else {
return null;
}
}