class eHTTPDyn: public eHTTPDataSource
{
+ DECLARE_REF(eHTTPDyn);
+private:
std::string result;
int wptr, size;
public:
int doWrite(int);
};
-class eHTTPDynPathResolver: public eHTTPPathResolver
+class eHTTPDynPathResolver: public iHTTPPathResolver
{
- struct eHTTPDynEntry
+ DECLARE_REF(eHTTPDynPathResolver);
+private:
+ struct eHTTPDynEntry: public iObject
{
+ DECLARE_REF(eHTTPDynEntry);
+ public:
std::string request, path;
std::string (*function)(std::string request, std::string path, std::string opt, eHTTPConnection *content);
{
}
};
- ePtrList<eHTTPDynEntry> dyn;
+ eSmartPtrList<eHTTPDynEntry> dyn;
public:
void addDyn(std::string request, std::string path, std::string (*function)(std::string, std::string, std::string, eHTTPConnection *conn));
eHTTPDynPathResolver();
- eHTTPDataSource *getDataSource(std::string request, std::string path, eHTTPConnection *conn);
+ RESULT getDataSource(eHTTPDataSourcePtr &ptr, std::string request, std::string path, eHTTPConnection *conn);
};
#endif