header.h 476 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   httpHeaderSort(const HttpHeader [], int);
char * httpHeaderGet(const HttpHeader [], int, const char *);
size_t httpHeaderSizeGet(HttpHeader);
size_t httpHeaderToString(HttpHeader, char *);

#endif // __HTTP_HEADER_H__

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