src/Control/Middleware/HTTPCacheControlMiddleware.php
public function applyToResponse($response)
    {
        $headers = $this->generateHeadersFor($response);
        foreach ($headers as $name => $value) {
            if (!$response->getHeader($name)) {
                $response->addHeader($name, $value);
            }
        }
        return $this;
    }
public function applyToResponse($response)
    {
        $headers = $this->generateHeadersFor($response);
        foreach ($headers as $name => $value) {
            if (!$response->getHeader($name)) {
                $response->addHeader($name, $value);
            }
        }
        return $this;
    }
public function applyToResponse ( $ response ) { $ headers = $ this -> generateHeadersFor ( $ response ) ; foreach ( $ headers as $ name => $ value ) { if ( ! $ response -> getHeader ( $ name ) ) { $ response -> addHeader ( $ name , $ value ) ; } } return $ this ; }
Generate all headers to add to this object

@param HTTPResponse $response

@return $this
Generate all headers to add to this object