public function emitHeaders(ResponseInterface $response)
    {
        foreach ($response->getHeaders() as $name => $values) {
            foreach (array_values((array)$values) as $i => $value) {
                $this->header("$name: $value", $i === 0);
            }
        }
    }