Elgg  Version 6.1
HttpProtocolTransport.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Elgg\Http;
4 
6 
14 
18  public function send(SymfonyResponse $response) {
19  if (!$response->headers->hasCacheControlDirective('no-cache')) {
20  $response->headers->addCacheControlDirective('no-cache', 'Set-Cookie');
21  }
22 
23  $response->send();
24  return true;
25  }
26 }
Transport for sending responses to HTTP clients via HTTP protocol.
$response
Definition: content.php:10
HTTP response transport interface.
send(SymfonyResponse $response)
{Sends HTTP response to the requester.Symfony Responsebool}