public static function copy(HttpRequest $request)
    {
        return new self(
            $request->getHost(),
            $request->getUri(),
            $request->getMethod(),
            $request->getHeaders(),
            $request->getBody()
        );
    }
public static function copy(HttpRequest $request)
    {
        return new self(
            $request->getHost(),
            $request->getUri(),
            $request->getMethod(),
            $request->getHeaders(),
            $request->getBody()
        );
    }
public static function copy ( HttpRequest $ request ) { return new self ( $ request -> getHost ( ) , $ request -> getUri ( ) , $ request -> getMethod ( ) , $ request -> getHeaders ( ) , $ request -> getBody ( ) ) ; }
Create copy from request

@param HttpRequest $request

@return CustomRequest
Create copy from request