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.
25 lines
452 B
25 lines
452 B
#ifndef __HTTP_RESPONSE_H__
|
|
#define __HTTP_RESPONSE_H__
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include "class.h"
|
|
#include "http/message.h"
|
|
|
|
|
|
CLASS(HttpResponse) {
|
|
EXTENDS(HttpMessage);
|
|
|
|
unsigned int status;
|
|
char * reason;
|
|
};
|
|
|
|
HttpResponse httpResponse404();
|
|
HttpResponse httpResponseMe();
|
|
HttpResponse httpResponseImage();
|
|
|
|
//void httpResponseHeaderSet(HttpResponse, const char *, const char *);
|
|
|
|
#endif /* __HTTP_RESPONSE_H__ */
|
|
|
|
// vim: set ts=4 sw=4:
|