You are here

public function Response::send in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::send()

Sends HTTP headers and content.

Return value

Response

File

vendor/symfony/http-foundation/Response.php, line 367

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function send() {
  $this
    ->sendHeaders();
  $this
    ->sendContent();
  if (function_exists('fastcgi_finish_request')) {
    fastcgi_finish_request();
  }
  elseif ('cli' !== PHP_SAPI) {
    static::closeOutputBuffers(0, true);
  }
  return $this;
}