nxt_application.h (180:3453139f9728) nxt_application.h (206:86a529b2ea9b)
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_APPLICATION_H_INCLUDED_

--- 70 unchanged lines hidden (view full) ---

79
80 nxt_str_t cookie;
81 nxt_str_t content_length;
82 nxt_str_t content_type;
83 nxt_str_t host;
84
85 off_t parsed_content_length;
86 nxt_bool_t done;
1
2/*
3 * Copyright (C) Max Romanov
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_APPLICATION_H_INCLUDED_

--- 70 unchanged lines hidden (view full) ---

79
80 nxt_str_t cookie;
81 nxt_str_t content_length;
82 nxt_str_t content_type;
83 nxt_str_t host;
84
85 off_t parsed_content_length;
86 nxt_bool_t done;
87
88 size_t bufs;
89 nxt_buf_t *buf;
87} nxt_app_request_header_t;
88
89
90typedef struct {
90} nxt_app_request_header_t;
91
92
93typedef struct {
91 nxt_str_t preread;
94 size_t preread_size;
92 nxt_bool_t done;
95 nxt_bool_t done;
96
97 nxt_buf_t *buf;
93} nxt_app_request_body_t;
94
95
96typedef struct {
97 nxt_app_request_header_t header;
98 nxt_app_request_body_t body;
99
100 nxt_str_t remote;

--- 6 unchanged lines hidden (view full) ---

107 nxt_app_request_t r;
108 nxt_http_request_parse_t parser;
109 nxt_mp_t *mem_pool;
110};
111
112
113nxt_int_t nxt_app_http_req_init(nxt_task_t *task, nxt_app_parse_ctx_t *ctx);
114
98} nxt_app_request_body_t;
99
100
101typedef struct {
102 nxt_app_request_header_t header;
103 nxt_app_request_body_t body;
104
105 nxt_str_t remote;

--- 6 unchanged lines hidden (view full) ---

112 nxt_app_request_t r;
113 nxt_http_request_parse_t parser;
114 nxt_mp_t *mem_pool;
115};
116
117
118nxt_int_t nxt_app_http_req_init(nxt_task_t *task, nxt_app_parse_ctx_t *ctx);
119
115nxt_int_t nxt_app_http_req_parse(nxt_task_t *task, nxt_app_parse_ctx_t *ctx,
116 nxt_buf_t *buf);
120nxt_int_t nxt_app_http_req_header_parse(nxt_task_t *task,
121 nxt_app_parse_ctx_t *ctx, nxt_buf_t *buf);
117
122
123nxt_int_t nxt_app_http_req_body_read(nxt_task_t *task,
124 nxt_app_parse_ctx_t *ctx, nxt_buf_t *buf);
125
126
118nxt_int_t nxt_app_http_req_done(nxt_task_t *task, nxt_app_parse_ctx_t *ctx);
119
120nxt_int_t nxt_app_http_init(nxt_task_t *task, nxt_runtime_t *rt);
121
122
123typedef struct nxt_app_wmsg_s nxt_app_wmsg_t;
124typedef struct nxt_app_rmsg_s nxt_app_rmsg_t;
125

--- 47 unchanged lines hidden (view full) ---

173 nxt_bool_t last);
174
175nxt_int_t nxt_app_msg_write_raw(nxt_task_t *task, nxt_app_wmsg_t *msg,
176 const u_char *c, size_t size);
177
178nxt_int_t nxt_app_msg_read_str(nxt_task_t *task, nxt_app_rmsg_t *msg,
179 nxt_str_t *str);
180
127nxt_int_t nxt_app_http_req_done(nxt_task_t *task, nxt_app_parse_ctx_t *ctx);
128
129nxt_int_t nxt_app_http_init(nxt_task_t *task, nxt_runtime_t *rt);
130
131
132typedef struct nxt_app_wmsg_s nxt_app_wmsg_t;
133typedef struct nxt_app_rmsg_s nxt_app_rmsg_t;
134

--- 47 unchanged lines hidden (view full) ---

182 nxt_bool_t last);
183
184nxt_int_t nxt_app_msg_write_raw(nxt_task_t *task, nxt_app_wmsg_t *msg,
185 const u_char *c, size_t size);
186
187nxt_int_t nxt_app_msg_read_str(nxt_task_t *task, nxt_app_rmsg_t *msg,
188 nxt_str_t *str);
189
190size_t nxt_app_msg_read_raw(nxt_task_t *task, nxt_app_rmsg_t *msg, void *buf,
191 size_t size);
192
181nxt_int_t nxt_app_msg_read_nvp(nxt_task_t *task, nxt_app_rmsg_t *rmsg,
182 nxt_str_t *n, nxt_str_t *v);
183
184nxt_int_t nxt_app_msg_read_size(nxt_task_t *task, nxt_app_rmsg_t *rmsg,
185 size_t *size);
186
187
188typedef struct nxt_app_module_s nxt_application_module_t;

--- 95 unchanged lines hidden ---
193nxt_int_t nxt_app_msg_read_nvp(nxt_task_t *task, nxt_app_rmsg_t *rmsg,
194 nxt_str_t *n, nxt_str_t *v);
195
196nxt_int_t nxt_app_msg_read_size(nxt_task_t *task, nxt_app_rmsg_t *rmsg,
197 size_t *size);
198
199
200typedef struct nxt_app_module_s nxt_application_module_t;

--- 95 unchanged lines hidden ---