You are here

public function RestfulException::setHeader in RESTful 7

Set a header.

Parameters

string $key: The header name.

string $value: The header value.

File

exceptions/RestfulException.php, line 154
Contains RestfulException

Class

RestfulException
@file Contains RestfulException

Code

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