Adds a root URL for the target website
| Return Type | Function name | Arguments |
|---|---|---|
| hzEcode | hzWebhost::AddRoot | (hzUrl&,hzString&,) |
Declared in file: hzHttpClient.h
Defined in file : hzHttpClient.cpp
Function Logic:
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 ;
}