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
00052 void httpMovedPermanently(FILE *client, const char newRelPath[]);
00053
00064 void httpBadRequest(FILE *client, const char request[]);
00065
00077 void httpForbidden(FILE *client, const char fullPath[], const char relPath[]);
00078
00090 void httpNotFound(FILE *client, const char fullPath[], const char relPath[]);
00091
00105 void httpInternalServerError(FILE *client, const char fullPath[],
00106 const char relPath[]);
00107
00108
00109 #endif