public static function root($path = null)
    {
        if (! is_null($path)) {
            if (! $path instanceof KhttpUrl) {
                $path = AnService::get('anahita:http.url', array('url' => $path));
            }

            self::$_root = $path;
        }

        if (is_null(self::$_root)) {
            self::$_root = self::$_base;
        }

        return self::$_root;
    }
public static function root($path = null)
    {
        if (! is_null($path)) {
            if (! $path instanceof KhttpUrl) {
                $path = AnService::get('anahita:http.url', array('url' => $path));
            }

            self::$_root = $path;
        }

        if (is_null(self::$_root)) {
            self::$_root = self::$_base;
        }

        return self::$_root;
    }
public static function root ( $ path = null ) { if ( ! is_null ( $ path ) ) { if ( ! $ path instanceof KhttpUrl ) { $ path = AnService :: get ( 'anahita:http.url' , array ( 'url' => $ path ) ) ; } self :: $ _root = $ path ; } if ( is_null ( self :: $ _root ) ) { self :: $ _root = self :: $ _base ; } return self :: $ _root ; }
Returns the root path of the request.

In most case this value will be the same as AnRequest::base however it can be
changed by pushing in a different value

@return  object  A AnHttpUrl object
Returns the root path of the request .