header.h 475 Bytes
#ifndef __HTTP_HEADER_H__
#define __HTTP_HEADER_H__

#include "class.h"

CLASS(HttpHeader) {
	unsigned long hash;
	char *        name;
	char *        value;
};

HttpHeader httpHeaderParse(char * line);   // @INFO: destructive

void   httpHeaderAdd(const HttpHeader *, HttpHeader);
char * httpHeaderGet(const HttpHeader *, const char *);
size_t httpHeaderSizeGet(HttpHeader);
size_t httpHeaderToString(HttpHeader, char *);

#endif // __HTTP_HEADER_H__

// vim: set ts=4 sw=4: