public function execute(ResponseInterface $httpResponse) {
		$headerFunction = $this->headerFunction;
		$bodyFunction   = $this->bodyFunction;
		$headerFunction('HTTP/' . $httpResponse->getProtocolVersion() . ' ' .
			$httpResponse->getStatusCode() . ' ' .
			$httpResponse->getReasonPhrase());
		foreach ($httpResponse->getHeaders() as $name => $values) {
			foreach ($values as $value) {
				$headerFunction(sprintf('%s: %s', $name, $value));
			}
		}
		$bodyFunction($httpResponse->getBody());
	}
public function execute(ResponseInterface $httpResponse) {
		$headerFunction = $this->headerFunction;
		$bodyFunction   = $this->bodyFunction;
		$headerFunction('HTTP/' . $httpResponse->getProtocolVersion() . ' ' .
			$httpResponse->getStatusCode() . ' ' .
			$httpResponse->getReasonPhrase());
		foreach ($httpResponse->getHeaders() as $name => $values) {
			foreach ($values as $value) {
				$headerFunction(sprintf('%s: %s', $name, $value));
			}
		}
		$bodyFunction($httpResponse->getBody());
	}
public function execute ( ResponseInterface $ httpResponse ) { $ headerFunction = $ this -> headerFunction ; $ bodyFunction = $ this -> bodyFunction ; $ headerFunction ( 'HTTP/' . $ httpResponse -> getProtocolVersion ( ) . ' ' . $ httpResponse -> getStatusCode ( ) . ' ' . $ httpResponse -> getReasonPhrase ( ) ) ; foreach ( $ httpResponse -> getHeaders ( ) as $ name => $ values ) { foreach ( $ values as $ value ) { $ headerFunction ( sprintf ( '%s: %s' , $ name , $ value ) ) ; } } $ bodyFunction ( $ httpResponse -> getBody ( ) ) ; }
Process a ResponseInterface into an output.

@param ResponseInterface $httpResponse
Process a ResponseInterface into an output .