Server 0.0.1
HTTP/REST server implementation

include/http/response.h

Go to the documentation of this file.
00001 
00024 #ifndef __HTTP_RESPONSE_H__
00025 #define __HTTP_RESPONSE_H__
00026 
00027 #include <time.h>
00028 #include <sys/types.h>
00029 
00030 #include "class.h"
00031 #include "http/message.h"
00032 #include "session.h"
00033 
00034 
00035 CLASS(HttpResponse) {
00036         EXTENDS(HttpMessage);
00037 
00038         unsigned int status;
00039         char *       reason;
00040 };
00041 
00042 HttpResponse httpResponse304(
00043                 const char *, size_t,
00044                 const char *, size_t,
00045                 const char *, size_t);
00046 HttpResponse httpResponse404();
00047 HttpResponse httpResponse403();
00048 HttpResponse httpResponseMe();
00049 HttpResponse httpResponseLoginForm();
00050 HttpResponse httpResponseRandval(time_t, int);
00051 HttpResponse httpResponseSession(Session);
00052 HttpResponse httpResponseAsset(
00053                 const char *,
00054                 const char *, size_t,
00055                 const char *, size_t);
00056 
00057 #endif // __HTTP_RESPONSE_H__
00058 
00059 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines