public static function createRequest($method, $path, $body = [], array $headers = [])
    {
        return new Request($method, $path, $body, $headers);
    }
public static function createRequest($method, $path, $body = [], array $headers = [])
    {
        return new Request($method, $path, $body, $headers);
    }
public static function createRequest ( $ method , $ path , $ body = [ ] , array $ headers = [ ] ) { return new Request ( $ method , $ path , $ body , $ headers ) ; }
Generate a request object

@param  string        $method
@param  string        $path
@param  array|string  $body
@param  array         $headers
@return Request
Generate a request object