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