diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-12-28 16:01:06 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-12-28 16:01:06 +0300 |
commit | 9a6d3c5775d945509c7c2cbec48be59757da42c3 (patch) | |
tree | 7129c13d6027a45e1a324deab373125bd7a14794 /src/nxt_application.h | |
parent | 497faf1b9abb188cab40c389a9e6221add5dd496 (diff) | |
download | unit-9a6d3c5775d945509c7c2cbec48be59757da42c3.tar.gz unit-9a6d3c5775d945509c7c2cbec48be59757da42c3.tar.bz2 |
HTTP keep-alive connections support.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_application.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/nxt_application.h b/src/nxt_application.h index b42d77ff..a9a1d5d3 100644 --- a/src/nxt_application.h +++ b/src/nxt_application.h @@ -115,28 +115,22 @@ typedef struct { } nxt_app_request_t; -typedef struct nxt_app_parse_ctx_s nxt_app_parse_ctx_t; +typedef struct nxt_http_request_s nxt_http_request_t; + +typedef struct nxt_app_parse_ctx_s nxt_app_parse_ctx_t; struct nxt_app_parse_ctx_s { nxt_app_request_t r; + nxt_http_request_t *request; + nxt_timer_t timer; nxt_http_request_parse_t parser; + nxt_http_request_parse_t resp_parser; nxt_mp_t *mem_pool; }; -nxt_app_parse_ctx_t *nxt_app_http_req_init(nxt_task_t *task); - -nxt_int_t nxt_app_http_req_header_parse(nxt_task_t *task, - nxt_app_parse_ctx_t *ctx, nxt_buf_t *buf); - -nxt_int_t nxt_app_http_req_body_read(nxt_task_t *task, - nxt_app_parse_ctx_t *ctx, nxt_buf_t *buf); - - nxt_int_t nxt_app_http_req_done(nxt_task_t *task, nxt_app_parse_ctx_t *ctx); -nxt_int_t nxt_app_http_init(nxt_task_t *task, nxt_runtime_t *rt); - typedef struct nxt_app_wmsg_s nxt_app_wmsg_t; typedef struct nxt_app_rmsg_s nxt_app_rmsg_t; |