public function 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 drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php
Get the response body as string

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Http/Response.php, line 222

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;
  }
}