2
0
Fork 0
lighttpd2/include/lighttpd/http_response_parser.h

27 lines
772 B
C
Raw Normal View History

#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
struct liHttpResponseCtx {
liChunkParserCtx chunk_ctx;
liResponse *response;
gboolean accept_cgi, accept_nph;
2009-10-19 16:59:26 +00:00
gboolean drop_header; /* for 1xx responses */
liChunkParserMark mark;
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-07-09 20:17:24 +00:00
LI_API liHandlerResult li_http_response_parse(liVRequest *vr, liHttpResponseCtx *ctx);
#endif