|
Server 0.0.1
HTTP/REST server implementation
|
00001 00023 #ifndef __HTTP_COOKIE_H__ 00024 #define __HTTP_COOKIE_H__ 00025 00026 #include <time.h> 00027 #include <sys/types.h> 00028 00029 #include "class.h" 00030 00031 CLASS(HttpCookie) { 00032 unsigned long hash; 00033 00034 char * key; 00035 char * value; 00036 char * domain; 00037 char * path; 00038 00039 time_t expires; 00040 time_t max_age; 00041 00042 size_t nkey; 00043 size_t nvalue; 00044 }; 00045 00046 char * httpCookieToString(HttpCookie); 00047 HttpCookie httpStringToCookie(const char *); 00048 00049 #endif // __HTTP_COOKIE_H__ 00050 00051 // vim: set ts=4 sw=4: