You are here

protected function Response::sendHeaders in RESTful 7.2

Sends HTTP headers.

1 call to Response::sendHeaders()
Response::send in src/Http/Response.php
Sends HTTP headers and content.

File

src/Http/Response.php, line 298
Contains \Drupal\restful\Http\Response.

Class

Response

Namespace

Drupal\restful\Http

Code

protected function sendHeaders() {
  foreach ($this->headers as $key => $header) {

    /* @var HttpHeader $header */
    drupal_add_http_header($header
      ->getName(), $header
      ->getValueString());
  }
  drupal_add_http_header('Status', $this
    ->getStatusCode());
}