Go to the documentation of this file.00001
00009 #ifndef I4HTTOOLS_H
00010 #define I4HTTOOLS_H
00011
00012 #include <stdio.h>
00013
00014
00027 int checkPath(const char relPath[]);
00028
00037 void httpOK(FILE *client);
00038
00049 void httpMovedPermanently(FILE *client, const char newRelPath[]);
00050
00061 void httpBadRequest(FILE *client, const char request[]);
00062
00074 void httpForbidden(FILE *client, const char fullPath[], const char relPath[]);
00075
00087 void httpNotFound(FILE *client, const char fullPath[], const char relPath[]);
00088
00101 void httpInternalServerError(FILE *client, const char fullPath[],
00102 const char relPath[]);
00103
00104
00105 #endif