response.h
542 Bytes
#ifndef __HTTP_RESPONSE_H__
#define __HTTP_RESPONSE_H__
#include <sys/types.h>
#include "class.h"
#include "http/header.h"
CLASS(HttpResponse) {
char * version;
unsigned int status;
char * reason;
HttpHeader header;
char * body;
int nbody;
};
HttpResponse httpResponse404();
void httpResponseHeaderSet(HttpResponse, const char *, const char *);
size_t httpResponseSizeGet(HttpResponse);
char * httpResponseToString(HttpResponse, char *);
#endif /* __HTTP_RESPONSE_H__ */
// vim: set ts=4 sw=4: