#ifndef _LIGHTTPD_HTTP_RESPONSE_PARSER_H_ #define _LIGHTTPD_HTTP_RESPONSE_PARSER_H_ #ifndef _LIGHTTPD_BASE_H_ #error Please include instead of this file #endif struct liHttpResponseCtx { liChunkParserCtx chunk_ctx; liResponse *response; gboolean accept_cgi, accept_nph; gboolean drop_header; /* for 1xx responses */ liChunkParserMark mark; GString *h_key, *h_value; }; 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); LI_API liHandlerResult li_http_response_parse(liVRequest *vr, liHttpResponseCtx *ctx); #endif