You are here

public function RestfulException::setHeader in RESTful 7.2

Set a header.

Parameters

string $key: The header name.

string $value: The header value.

File

src/Exception/RestfulException.php, line 159
Contains \Drupal\restful\Exception\RestfulException.

Class

RestfulException

Namespace

Drupal\restful\Exception

Code

public function setHeader($key, $value) {
  $this->headers[$key] = $value;
}