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
Namespace
Drupal\restful\ExceptionCode
public function setHeader($key, $value) {
$this->headers[$key] = $value;
}