You can not 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_request_parser.h

23 lines
634 B

#ifndef _LIGHTTPD_HTTP_REQUEST_PARSER_H_
#define _LIGHTTPD_HTTP_REQUEST_PARSER_H_
#ifndef _LIGHTTPD_BASE_H_
#error Please include <lighttpd/base.h> instead of this file
#endif
struct liHttpRequestCtx {
liChunkParserCtx chunk_ctx;
liRequest *request;
liChunkParserMark mark;
GString *h_key, *h_value;
};
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);
LI_API liHandlerResult li_http_request_parse(liVRequest *vr, liHttpRequestCtx *ctx);
#endif