src/Application.php
public function emit(ResponseInterface $response)
    {
        $code = $response->code() . ' ' . $response->reason();

        $headers = $response->headers();

        $version = $response->version();

        foreach ($headers as $name => $values)
        {
            header($name . ': ' . implode(',', $values));
        }

        header(sprintf('HTTP/%s %s', $version, $code));

        return $response;
    }
public function emit(ResponseInterface $response)
    {
        $code = $response->code() . ' ' . $response->reason();

        $headers = $response->headers();

        $version = $response->version();

        foreach ($headers as $name => $values)
        {
            header($name . ': ' . implode(',', $values));
        }

        header(sprintf('HTTP/%s %s', $version, $code));

        return $response;
    }
public function emit ( ResponseInterface $ response ) { $ code = $ response -> code ( ) . ' ' . $ response -> reason ( ) ; $ headers = $ response -> headers ( ) ; $ version = $ response -> version ( ) ; foreach ( $ headers as $ name => $ values ) { header ( $ name . ': ' . implode ( ',' , $ values ) ) ; } header ( sprintf ( 'HTTP/%s %s' , $ version , $ code ) ) ; return $ response ; }
Emits the headers from the response instance.

@param  \Zapheus\Http\Message\ResponseInterface $response
@return \Zapheus\Http\Message\ResponseInterface
Emits the headers from the response instance .