summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2019-08-26 18:29:00 +0300
committerIgor Sysoev <igor@sysoev.ru>2019-08-26 18:29:00 +0300
commite2abfaf381984b9c441555a3614336b64008c80d (patch)
tree7e0dab421f7e5588a7e350009d688771a04b321c /src/nxt_http.h
parent129882413013adc803d855b3ba413b55882c4293 (diff)
downloadunit-e2abfaf381984b9c441555a3614336b64008c80d.tar.gz
unit-e2abfaf381984b9c441555a3614336b64008c80d.tar.bz2
Adding body handler to nxt_http_request_header_send().
Diffstat (limited to 'src/nxt_http.h')
-rw-r--r--src/nxt_http.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index ac1eedcf..2ca3f536 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -175,7 +175,8 @@ struct nxt_http_pass_s {
typedef struct {
void (*body_read)(nxt_task_t *task, nxt_http_request_t *r);
void (*local_addr)(nxt_task_t *task, nxt_http_request_t *r);
- void (*header_send)(nxt_task_t *task, nxt_http_request_t *r);
+ void (*header_send)(nxt_task_t *task, nxt_http_request_t *r,
+ nxt_work_handler_t body_handler);
void (*send)(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *out);
nxt_off_t (*body_bytes_sent)(nxt_task_t *task, nxt_http_proto_t proto);
void (*discard)(nxt_task_t *task, nxt_http_request_t *r, nxt_buf_t *last);
@@ -195,7 +196,8 @@ nxt_http_request_t *nxt_http_request_create(nxt_task_t *task);
void nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
nxt_http_status_t status);
void nxt_http_request_read_body(nxt_task_t *task, nxt_http_request_t *r);
-void nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r);
+void nxt_http_request_header_send(nxt_task_t *task, nxt_http_request_t *r,
+ nxt_work_handler_t body_handler);
void nxt_http_request_ws_frame_start(nxt_task_t *task, nxt_http_request_t *r,
nxt_buf_t *ws_frame);
void nxt_http_request_send(nxt_task_t *task, nxt_http_request_t *r,