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
500 B
25 lines
500 B
#ifndef __HTTP_REQUEST_H__
|
|
#define __HTTP_REQUEST_H__
|
|
|
|
#include "class.h"
|
|
#include "http/header.h"
|
|
|
|
CLASS(HttpRequest) {
|
|
char * method;
|
|
char * uri;
|
|
char * version;
|
|
|
|
HttpHeader header;
|
|
|
|
char * body;
|
|
int nbody;
|
|
};
|
|
|
|
void httpHeaderAdd(HttpHeader *, HttpHeader);
|
|
char * XhttpHeaderGet(HttpHeader *, const char *);
|
|
char * httpRequestHeaderGet(HttpRequest, const char *);
|
|
char httpRequestHasKeepAlive(HttpRequest);
|
|
|
|
#endif /* __HTTP_REQUEST_H__ */
|
|
|
|
// vim: set ts=4 sw=4:
|