6 class eHTTPFile: public eHTTPDataSource
8 DECLARE_REF(eHTTPFile);
14 enum { methodGET, methodPUT };
15 eHTTPFile(eHTTPConnection *c, int fd, int method, const char *mime);
18 void haveData(void *data, int len);
21 class eHTTPFilePathResolver: public iHTTPPathResolver
23 DECLARE_REF(eHTTPFilePathResolver);
29 int authorized; // must be authorized (1 means read, 2 write)
30 eHTTPFilePath(std::string path, std::string root, int authorized): path(path), root(root), authorized(authorized)
34 ePtrList<eHTTPFilePath> translate;
36 eHTTPFilePathResolver();
37 RESULT getDataSource(eHTTPDataSourcePtr &ptr, std::string request, std::string path, eHTTPConnection *conn);
38 void addTranslation(std::string path, std::string root, int auth);