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.
28 lines
567 B
28 lines
567 B
#ifndef __HTTP_REQUEST_PARSER_H__
|
|
#define __HTTP_REQUEST_PARSER_H__
|
|
|
|
#include "class.h"
|
|
//#include "http/request.h"
|
|
//#include "http/request_queue.h"
|
|
|
|
#define HTTP_REQUEST_PARSER_READ_CHUNK 1024
|
|
|
|
typedef enum e_HttpRequestState {
|
|
HTTP_REQUEST_START=0,
|
|
HTTP_REQUEST_REQEUST_LINE_DONE,
|
|
HTTP_REQUEST_HEADERS_DONE,
|
|
HTTP_REQUEST_DONE
|
|
} HttpRequestState;
|
|
|
|
|
|
CLASS(HttpRequestParser) {
|
|
char * buffer;
|
|
size_t buffer_used;
|
|
|
|
//HttpRequestQueue request_queue;
|
|
HttpRequestState state;
|
|
};
|
|
|
|
#endif /* __HTTP_REQUEST_PARSER_H__ */
|
|
|
|
// vim: set ts=4 sw=4:
|