src/Strategy/AbstractStrategy.php
protected function applyDefaultResponseHeaders(ResponseInterface $response) : ResponseInterface
    {
        foreach ($this->defaultResponseHeaders as $name => $value) {
            if (! $response->hasHeader($name)) {
                $response = $response->withHeader($name, $value);
            }
        }

        return $response;
    }
protected function applyDefaultResponseHeaders(ResponseInterface $response) : ResponseInterface
    {
        foreach ($this->defaultResponseHeaders as $name => $value) {
            if (! $response->hasHeader($name)) {
                $response = $response->withHeader($name, $value);
            }
        }

        return $response;
    }
protected function applyDefaultResponseHeaders ( ResponseInterface $ response ) : ResponseInterface { foreach ( $ this -> defaultResponseHeaders as $ name => $ value ) { if ( ! $ response -> hasHeader ( $ name ) ) { $ response = $ response -> withHeader ( $ name , $ value ) ; } } return $ response ; }
Apply default response headers

Headers that already exist on the response will NOT be replaced.

@param \Psr\Http\Message\ResponseInterface $response

@return \Psr\Http\Message\ResponseInterface
Apply default response headers