You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lighttpd2/include/lighttpd/http_response_parser.h

29 lines
802 B
C

#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;
gboolean drop_header; /* for 1xx responses */
liHttpVersion http_version;
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