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.
27 lines
691 B
C
27 lines
691 B
C
15 years ago
|
#ifndef _LIGHTTPD_HTTP_REQUEST_PARSER_H_
|
||
|
#define _LIGHTTPD_HTTP_REQUEST_PARSER_H_
|
||
|
|
||
15 years ago
|
#ifndef _LIGHTTPD_BASE_H_
|
||
15 years ago
|
#error Please include <lighttpd/base.h> instead of this file
|
||
15 years ago
|
#endif
|
||
|
|
||
15 years ago
|
struct http_request_ctx;
|
||
|
typedef struct http_request_ctx http_request_ctx;
|
||
|
|
||
|
struct http_request_ctx {
|
||
15 years ago
|
chunk_parser_ctx chunk_ctx;
|
||
15 years ago
|
struct request *request;
|
||
15 years ago
|
|
||
|
chunk_parser_mark mark;
|
||
15 years ago
|
GString *h_key, *h_value;
|
||
15 years ago
|
};
|
||
|
|
||
15 years ago
|
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);
|
||
15 years ago
|
|
||
15 years ago
|
LI_API handler_t http_request_parse(vrequest *vr, http_request_ctx *ctx);
|
||
15 years ago
|
|
||
|
|
||
15 years ago
|
#endif
|