public function sendResponseBody(ResponseInterface $response):void
    {
        if (($body = $response->getBody()->detach()) === null) {
            $body = $response->getBody()->__toString();
        }
        $this->sendBody($body);
    }
public function sendResponseBody(ResponseInterface $response):void
    {
        if (($body = $response->getBody()->detach()) === null) {
            $body = $response->getBody()->__toString();
        }
        $this->sendBody($body);
    }
public function sendResponseBody ( ResponseInterface $ response ) : void { if ( ( $ body = $ response -> getBody ( ) -> detach ( ) ) === null ) { $ body = $ response -> getBody ( ) -> __toString ( ) ; } $ this -> sendBody ( $ body ) ; }
Sends a response's body.

@param ResponseInterface $response
Sends a response s body .