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
555 B
30 lines
555 B
#ifndef __HTTP_MESSAGE__
|
|
#define __HTTP_MESSAGE__
|
|
|
|
#include "class.h"
|
|
#include "http/header.h"
|
|
|
|
typedef enum e_HttpMessageType {
|
|
HTTP_MESSAGE_BUFFERED=0,
|
|
HTTP_MESSAGE_PIPED
|
|
} HttpMessageType;
|
|
|
|
|
|
CLASS(HttpMessage) {
|
|
char * version;
|
|
|
|
HttpHeader header;
|
|
|
|
HttpMessageType type;
|
|
int handle;
|
|
char * body;
|
|
int nbody;
|
|
};
|
|
|
|
char httpMessageHasKeepAlive(HttpMessage);
|
|
size_t httpMessageHeaderSizeGet(HttpMessage);
|
|
char * httpMessageHeaderToString(HttpMessage, char *);
|
|
|
|
#endif // __HTTP_MESSAGE__
|
|
|
|
// vim: set ts=4 sw=4:
|