public function sendHeaders(ResponseInterface $response)
    {
        foreach ($response->getHeaders() as $header => $values) {
            $first = true;
            $header = HeaderHelper::normalizeHeaderName($header);

            foreach ($values as $value) {
                $this->header(sprintf('%s: %s', $header, $value), $first);

                $first = false;
            }
        }

        return $this;
    }
public function sendHeaders(ResponseInterface $response)
    {
        foreach ($response->getHeaders() as $header => $values) {
            $first = true;
            $header = HeaderHelper::normalizeHeaderName($header);

            foreach ($values as $value) {
                $this->header(sprintf('%s: %s', $header, $value), $first);

                $first = false;
            }
        }

        return $this;
    }
public function sendHeaders ( ResponseInterface $ response ) { foreach ( $ response -> getHeaders ( ) as $ header => $ values ) { $ first = true ; $ header = HeaderHelper :: normalizeHeaderName ( $ header ) ; foreach ( $ values as $ value ) { $ this -> header ( sprintf ( '%s: %s' , $ header , $ value ) , $ first ) ; $ first = false ; } } return $ this ; }
Send all response headers.

@param   ResponseInterface $response Response object to contain headers.

@return  Output  Instance of $this to allow chaining.
Send all response headers .