Adds a root URL for the target website

Return TypeFunction nameArguments
hzEcodehzWebhost::AddRoot(hzUrl&,hzString&,)

Declared in file: hzHttpClient.h
Defined in file : hzHttpClient.cpp

Function Logic:

0:START 1:unknown 2:Return E_ARGUMENT 3:X X items 4:Return E_OK

Function body:

hzEcode hzWebhost::AddRoot (hzUrl& url)hzString& criteria, 
{
   //  Adds a root URL for the target website
   //  
   //  Arguments: 1) url   The root URL of the website
   //     2) criteria The resource we want as the entry point
   //  
   //  Returns: E_ARGUMENT If the URL is not specified
   //     E_OK  If the root is added
   _hzfunc("hzWebhost::AddRoot") ;
   hzPair  X ;     //  URL/Search critiria pair
   if (!url)
       return E_ARGUMENT ;
   X.name = url.Whole() ;
   X.value = criteria ;
   m_Roots.Add(X) ;
   return E_OK ;
}