Server 0.0.1
HTTP/REST server implementation

include/http/header.h

Go to the documentation of this file.
00001 
00025 #ifndef __HTTP_HEADER_H__
00026 #define __HTTP_HEADER_H__
00027 
00028 #include <sys/types.h>
00029 
00030 #include "class.h"
00031 
00032 #define N_VALUES        128
00033 
00034 CLASS(HttpHeader) {
00035         unsigned long hash;
00036         char *        name;
00037         char *        value[N_VALUES];
00038         size_t        nname;                    
00039         size_t        nvalue[N_VALUES]; 
00040         size_t        cvalue;                   
00041         size_t        size;                             
00042 };
00043 
00044 size_t     httpHeaderToString(HttpHeader, char *);
00045 
00046 #endif // __HTTP_HEADER_H__
00047 
00048 // vim: set ts=4 sw=4:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines