4 #include <lib/network/httpd.h>
6 class eHTTPDyn: public eHTTPDataSource
12 eHTTPDyn(eHTTPConnection *c, std::string result);
17 class eHTTPDynPathResolver: public iHTTPPathResolver
19 DECLARE_REF(eHTTPDynPathResolver);
20 struct eHTTPDynEntry: public iObject
22 DECLARE_REF(eHTTPDynEntry);
24 std::string request, path;
25 std::string (*function)(std::string request, std::string path, std::string opt, eHTTPConnection *content);
27 eHTTPDynEntry(std::string request, std::string path, std::string (*function)(std::string, std::string, std::string, eHTTPConnection *)): request(request), path(path), function(function)
31 eSmartPtrList<eHTTPDynEntry> dyn;
33 void addDyn(std::string request, std::string path, std::string (*function)(std::string, std::string, std::string, eHTTPConnection *conn));
34 eHTTPDynPathResolver();
35 RESULT getDataSource(eHTTPDataSourcePtr &ptr, std::string request, std::string path, eHTTPConnection *conn);