29 lines
672 B
C
29 lines
672 B
C
#ifndef _LIGHTTPD_HTTP_REQUEST_PARSER_H_
|
|
#define _LIGHTTPD_HTTP_REQUEST_PARSER_H_
|
|
|
|
struct http_request_ctx;
|
|
typedef struct http_request_ctx http_request_ctx;
|
|
|
|
#include "chunk_parser.h"
|
|
|
|
struct request;
|
|
|
|
struct http_request_ctx {
|
|
chunk_parser_ctx chunk_ctx;
|
|
struct request *request;
|
|
|
|
chunk_parser_mark mark;
|
|
GString *h_key, *h_value;
|
|
};
|
|
|
|
#include "request.h"
|
|
|
|
LI_API void http_request_parser_init(http_request_ctx* ctx, request *req, chunkqueue *cq);
|
|
LI_API void http_request_parser_reset(http_request_ctx* ctx);
|
|
LI_API void http_request_parser_clear(http_request_ctx *ctx);
|
|
|
|
LI_API handler_t http_request_parse(struct connection *con, http_request_ctx *ctx);
|
|
|
|
|
|
#endif
|