response.h
570 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[128];
int nheader;
char * body;
int nbody;
};
HttpResponse httpResponse404();
void httpResponseHeaderSet(HttpResponse, const char *, const char *);
size_t httpResponseSizeGet(HttpResponse);
size_t httpResponseToString(HttpResponse, char *);
#endif /* __HTTP_RESPONSE_H__ */
// vim: set ts=4 sw=4: