original_string: public static function sendResponse(ResponseInterface $response) 
      {
  		$code = $response->getStatusCode();
  		$reason = $response->getReasonPhrase();
  		header(
  			sprintf('HTTP/%s %s %s', $response->getProtocolVersion(), $code, $reason),
  			true, $code 
  		);
  
  		foreach ($response->getHeaders() as $header => $values) {
  			foreach ($values as $value) {
  				header("$header: $value", false);
  			}
  		}
  
  		echo $response->getBody();
  	}
code: public static function sendResponse(ResponseInterface $response) 
      {
  		$code = $response->getStatusCode();
  		$reason = $response->getReasonPhrase();
  		header(
  			sprintf('HTTP/%s %s %s', $response->getProtocolVersion(), $code, $reason),
  			true, $code 
  		);
  
  		foreach ($response->getHeaders() as $header => $values) {
  			foreach ($values as $value) {
  				header("$header: $value", false);
  			}
  		}
  
  		echo $response->getBody();
  	}
code_tokens: public static function sendResponse ( ResponseInterface $ response ) { $ code = $ response -> getStatusCode ( ) ; $ reason = $ response -> getReasonPhrase ( ) ; header ( sprintf ( 'HTTP/%s %s %s' , $ response -> getProtocolVersion ( ) , $ code , $ reason ) , true , $ code ) ; foreach ( $ response -> getHeaders ( ) as $ header => $ values ) { foreach ( $ values as $ value ) { header ( "$header: $value" , false ) ; } } echo $ response -> getBody ( ) ; }
docstring: Utility function to emit a Response without additional framework.
docstring_tokens: Utility function to emit a Response without additional framework .