Another abandoned server code base... this is kind of an ancestor of taskrambler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

30 lines
570 B

#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: