public function request($verb, $path, $accept, array $customCURLOptions=[])
    {

        $verb = strtoupper(
            trim(
                $verb
            )
        );

        $instantiateClass = "\\Lamoni\\RESTLyte\\RESTLyteRequest\\RESTLyteRequest{$this->getResponseType()}";

        $request = new $instantiateClass(
            $this->getServer(),
            $verb,
            $path,
            $this->getAuthCredentials(),
            $accept,
            $this->getVerifySSLPeer(),
            $this->getHTTPHeaders(),
            $customCURLOptions
        );

        return $request->getResponse();
    }
public function request($verb, $path, $accept, array $customCURLOptions=[])
    {

        $verb = strtoupper(
            trim(
                $verb
            )
        );

        $instantiateClass = "\\Lamoni\\RESTLyte\\RESTLyteRequest\\RESTLyteRequest{$this->getResponseType()}";

        $request = new $instantiateClass(
            $this->getServer(),
            $verb,
            $path,
            $this->getAuthCredentials(),
            $accept,
            $this->getVerifySSLPeer(),
            $this->getHTTPHeaders(),
            $customCURLOptions
        );

        return $request->getResponse();
    }
public function request ( $ verb , $ path , $ accept , array $ customCURLOptions = [ ] ) { $ verb = strtoupper ( trim ( $ verb ) ) ; $ instantiateClass = "\\Lamoni\\RESTLyte\\RESTLyteRequest\\RESTLyteRequest{$this->getResponseType()}" ; $ request = new $ instantiateClass ( $ this -> getServer ( ) , $ verb , $ path , $ this -> getAuthCredentials ( ) , $ accept , $ this -> getVerifySSLPeer ( ) , $ this -> getHTTPHeaders ( ) , $ customCURLOptions ) ; return $ request -> getResponse ( ) ; }
Base for REST requests

@param $verb
@param $path
@param $accept
@param array $customCURLOptions
@return \Lamoni\RESTLyte\RESTLyteRequest\RESTLyteRequestAbstract
Base for REST requests