linodedns/linode_api/Services/Linode.php
/**
     *  Returns the HTTP_Request2 instance.
     *
     * @return object
     */
Returns the HTTP_Request2 instance.
@return object
Returns the HTTP_Request2 instance . @return object
protected function httpRequest()
    {
        if ($this->request === null) {
            $this->request = new HTTP_Request2();
            $this->request->setConfig($this->httpConfig);    
            $this->request->setMethod(HTTP_Request2::METHOD_POST);
            $this->request->setUrl(self::$apiUrl);            
            $this->request->setHeader(array('User-Agent' => 'Linode PHP/@package_version@'));
        }
        return $this->request;
    }
protected function httpRequest ( ) { if ( $ this -> request === null ) { $ this -> request = new HTTP_Request2 ( ) ; $ this -> request -> setConfig ( $ this -> httpConfig ) ; $ this -> request -> setMethod ( HTTP_Request2 :: METHOD_POST ) ; $ this -> request -> setUrl ( self :: $ apiUrl ) ; $ this -> request -> setHeader ( array ( 'User-Agent' => 'Linode PHP/@package_version@' ) ) ; } return $ this -> request ; }
Returns the HTTP_Request2 instance.
Returns the HTTP_Request2 instance .