original_string: public function emitBody(ResponseInterface $response)
      {
          $output = $this->createOutputStream();
          
          if (!$output) {
              throw new \RuntimeException("Failed to open output stream");
          }
          
          $response->getBody()->rewind();
          $handle = $response->getBody()->detach();
          
          stream_copy_to_stream($handle, $output);
      }
code: public function emitBody(ResponseInterface $response)
      {
          $output = $this->createOutputStream();
          
          if (!$output) {
              throw new \RuntimeException("Failed to open output stream");
          }
          
          $response->getBody()->rewind();
          $handle = $response->getBody()->detach();
          
          stream_copy_to_stream($handle, $output);
      }
code_tokens: public function emitBody ( ResponseInterface $ response ) { $ output = $ this -> createOutputStream ( ) ; if ( ! $ output ) { throw new \ RuntimeException ( "Failed to open output stream" ) ; } $ response -> getBody ( ) -> rewind ( ) ; $ handle = $ response -> getBody ( ) -> detach ( ) ; stream_copy_to_stream ( $ handle , $ output ) ; }
docstring: Emit the HTTP body
  
  @param ResponseInterface $response
  @throws \RuntimeException
docstring_tokens: Emit the HTTP body