private function restoreResponse($headers, $body = null)
    {
        $status = $headers['X-Status'][0];
        unset($headers['X-Status']);

        if (null !== $body) {
            $headers['X-Body-File'] = [$body];
        }

        return new Response($body, $status, $headers);
    }
private function restoreResponse($headers, $body = null)
    {
        $status = $headers['X-Status'][0];
        unset($headers['X-Status']);

        if (null !== $body) {
            $headers['X-Body-File'] = [$body];
        }

        return new Response($body, $status, $headers);
    }
private function restoreResponse ( $ headers , $ body = null ) { $ status = $ headers [ 'X-Status' ] [ 0 ] ; unset ( $ headers [ 'X-Status' ] ) ; if ( null !== $ body ) { $ headers [ 'X-Body-File' ] = [ $ body ] ; } return new Response ( $ body , $ status , $ headers ) ; }
Restores a Response from the HTTP headers and body.

@param array  $headers An array of HTTP headers for the Response
@param string $body    The Response body

@return Response
Restores a Response from the HTTP headers and body .