diff options
| author | Ippolitov Igor <iippolitov@nginx.com> | 2023-10-19 12:50:39 +0100 |
|---|---|---|
| committer | Ippolitov Igor <iippolitov@nginx.com> | 2023-10-19 12:50:39 +0100 |
| commit | c43629880472bba8d389dfb0b7ae6d883b0ba499 (patch) | |
| tree | acecdcb36cfb85fac3d8cdbfbe473c26ac2e2686 /src/wasm/nxt_wasm.h | |
| parent | 8c4425ccb9a413e8d0506e0254f0e84bd89a32a6 (diff) | |
| parent | fb33ec86a3b6ca6a844dfa6980bb9e083094abec (diff) | |
| download | unit-1.31.1-1.tar.gz unit-1.31.1-1.tar.bz2 | |
Merged with the default branch.1.31.1-1
Diffstat (limited to '')
| -rw-r--r-- | src/wasm/nxt_wasm.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/wasm/nxt_wasm.h b/src/wasm/nxt_wasm.h index cb9dbdfe..6bc3ae35 100644 --- a/src/wasm/nxt_wasm.h +++ b/src/wasm/nxt_wasm.h @@ -59,10 +59,10 @@ struct nxt_wasm_request_s { uint32_t server_name_off; uint32_t server_name_len; - uint32_t content_off; - uint32_t content_len; + uint64_t content_len; + uint64_t total_content_sent; uint32_t content_sent; - uint32_t total_content_sent; + uint32_t content_off; uint32_t request_size; @@ -70,6 +70,8 @@ struct nxt_wasm_request_s { uint32_t tls; + char __pad[4]; + nxt_wasm_http_field_t fields[]; }; @@ -118,12 +120,14 @@ struct nxt_wasm_ctx_s { size_t baddr_off; size_t response_off; + + uint16_t status; }; struct nxt_wasm_operations_s { int (*init)(nxt_wasm_ctx_t *ctx); void (*destroy)(const nxt_wasm_ctx_t *ctx); - void (*exec_request)(const nxt_wasm_ctx_t *ctx); + int (*exec_request)(const nxt_wasm_ctx_t *ctx); void (*exec_hook)(const nxt_wasm_ctx_t *ctx, nxt_wasm_fh_t hook); }; |
