2009-01-10 12:30:58 +00:00
|
|
|
#ifndef _LIGHTTPD_HTTP_RESPONSE_PARSER_H_
|
|
|
|
#define _LIGHTTPD_HTTP_RESPONSE_PARSER_H_
|
|
|
|
|
|
|
|
#ifndef _LIGHTTPD_BASE_H_
|
|
|
|
#error Please include <lighttpd/base.h> instead of this file
|
|
|
|
#endif
|
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
struct liHttpResponseCtx {
|
|
|
|
liChunkParserCtx chunk_ctx;
|
|
|
|
liResponse *response;
|
2009-01-10 12:30:58 +00:00
|
|
|
|
|
|
|
gboolean accept_cgi, accept_nph;
|
2009-10-19 16:59:26 +00:00
|
|
|
gboolean drop_header; /* for 1xx responses */
|
2009-01-10 12:30:58 +00:00
|
|
|
|
2009-07-08 19:06:07 +00:00
|
|
|
liChunkParserMark mark;
|
2009-01-10 12:30:58 +00:00
|
|
|
GString *h_key, *h_value;
|
|
|
|
};
|
|
|
|
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API void li_http_response_parser_init(liHttpResponseCtx* ctx, liResponse *req, liChunkQueue *cq, gboolean accept_cgi, gboolean accept_nph);
|
|
|
|
LI_API void li_http_response_parser_reset(liHttpResponseCtx* ctx);
|
|
|
|
LI_API void li_http_response_parser_clear(liHttpResponseCtx *ctx);
|
2009-01-10 12:30:58 +00:00
|
|
|
|
2009-07-09 20:17:24 +00:00
|
|
|
LI_API liHandlerResult li_http_response_parse(liVRequest *vr, liHttpResponseCtx *ctx);
|
2009-01-10 12:30:58 +00:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|