original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Emits the headers from the response instance.
  
  @param  \Zapheus\Http\Message\ResponseInterface $response
  @return \Zapheus\Http\Message\ResponseInterface
docstring_tokens: Emits the headers from the response instance .