00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00023 #ifndef REQHANDLER_FILE_H_FLAG
00024 #define REQHANDLER_FILE_H_FLAG
00025
00026 #include "common.h"
00027
00028 #include "buffer.h"
00029 #include "http.h"
00030
00031
00032 struct ReqHandlerFile;
00033
00035 typedef struct ReqHandlerFile* ReqHandlerFile;
00036
00037
00043 int rhfModulePreInit();
00044
00050 int rhfModuleTerminate();
00051
00052
00053
00068 ReqHandlerFile rhfInit(HttpProtHandler parent, const char *path_buf, int change_path);
00069
00082 int rhfReceive(ReqHandlerFile this, struct Buffer *buf );
00083
00095 int rhfSend(ReqHandlerFile this, struct Buffer **buf);
00096
00106 int rhfProcess(ReqHandlerFile this);
00107
00114 int rhfIsDataPending(ReqHandlerFile this);
00115
00124 int rhfTerminate(ReqHandlerFile this);
00125
00132 int rhfGetError(ReqHandlerFile this);
00133
00140 size_t rhfGetSourceSize(ReqHandlerFile this);
00141
00148 time_t rhfGetModTime(ReqHandlerFile this);
00149
00156 const char *rhfGetAllow(ReqHandlerFile this);
00157
00164 const char* rhfGetContentType(ReqHandlerFile this);
00165
00166 #endif