to_string.c
321 Bytes
#include <string.h>
#include "http/header.h"
size_t
httpHeaderToString(HttpHeader header, char * string)
{
size_t size = httpHeaderSizeGet(header);
strcpy(string, header->name);
string += strlen(string);
*string++ = ':';
*string++ = ' ';
strcpy(string, header->value);
return size;
}
// vim: set ts=4 sw=4: