class eHTTPFile: public eHTTPDataSource
{
+ DECLARE_REF(eHTTPFile);
+private:
int fd, size;
const char *mime;
int method;
void haveData(void *data, int len);
};
-class eHTTPFilePathResolver: public eHTTPPathResolver
+class eHTTPFilePathResolver: public iHTTPPathResolver
{
+ DECLARE_REF(eHTTPFilePathResolver);
+public:
struct eHTTPFilePath
{
std::string path;
ePtrList<eHTTPFilePath> translate;
public:
eHTTPFilePathResolver();
- eHTTPDataSource *getDataSource(std::string request, std::string path, eHTTPConnection *conn);
+ RESULT getDataSource(eHTTPDataSourcePtr &ptr, std::string request, std::string path, eHTTPConnection *conn);
void addTranslation(std::string path, std::string root, int auth);
};