|
Server 0.0.1
HTTP/REST server implementation
|
00001 00024 #ifndef __HTTP_REQUEST_H__ 00025 #define __HTTP_REQUEST_H__ 00026 00027 #include "class.h" 00028 #include "http/message.h" 00029 #include "hash.h" 00030 00031 #define N_HTTP_METHOD 8 00032 00033 char * http_method[N_HTTP_METHOD]; 00034 00035 CLASS(HttpRequest) { 00036 EXTENDS(HttpMessage); 00037 00038 char * method; 00039 char * uri; 00040 char * path; 00041 00042 Hash get; 00043 Hash post; 00044 Hash cookies; 00045 }; 00046 00047 int httpRequestHasValidMethod(HttpRequest); 00048 00049 #endif // __HTTP_REQUEST_H__ 00050 00051 // vim: set ts=4 sw=4: