Phly\Http\Response\SapiEmitter::emitHeaders PHP Method

emitHeaders() private method

Loops through each header, emitting each; if the header value is an array with multiple values, ensures that each is sent in such a way as to create aggregate headers (instead of replace the previous).
private emitHeaders ( Psr\Http\Message\ResponseInterface $response )
$response Psr\Http\Message\ResponseInterface
    private function emitHeaders(ResponseInterface $response)
    {
        foreach ($response->getHeaders() as $header => $values) {
            $name = $this->filterHeader($header);
            $first = true;
            foreach ($values as $value) {
                header(sprintf('%s: %s', $name, $value), $first);
                $first = false;
            }
        }
    }