2008-06-30 14:24:29 +00:00
|
|
|
#ifndef _LIGHTTPD_HTTP_REQUEST_PARSER_H_
|
|
|
|
#define _LIGHTTPD_HTTP_REQUEST_PARSER_H_
|
|
|
|
|
2008-10-28 21:11:50 +00:00
|
|
|
#ifndef _LIGHTTPD_BASE_H_
|
2008-11-16 20:33:53 +00:00
|
|
|
#error Please include <lighttpd/base.h> instead of this file
|
2008-10-28 21:11:50 +00:00
|
|
|
#endif
|
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
struct liHttpRequestCtx {
|
|
|
|
liChunkParserCtx chunk_ctx;
|
|
|
|
liRequest *request;
|
2008-06-30 14:24:29 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
liChunkParserMark mark;
|
2008-08-04 22:25:42 +00:00
|
|
|
GString *h_key, *h_value;
|
2008-06-30 14:24:29 +00:00
|
|
|
};
|
|
|
|
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API void li_http_request_parser_init(liHttpRequestCtx* ctx, liRequest *req, liChunkQueue *cq);
|
|
|
|
LI_API void li_http_request_parser_reset(liHttpRequestCtx* ctx);
|
|
|
|
LI_API void li_http_request_parser_clear(liHttpRequestCtx *ctx);
|
2008-08-04 22:25:42 +00:00
|
|
|
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API liHandlerResult li_http_request_parse(liVRequest *vr, liHttpRequestCtx *ctx);
|
2008-07-01 20:07:54 +00:00
|
|
|
|
|
|
|
|
2008-06-30 14:24:29 +00:00
|
|
|
#endif
|