diff options
author | Timo Stark <t.stark@nginx.com> | 2023-08-28 05:43:31 -0700 |
---|---|---|
committer | Timo Stark <t.stark@nginx.com> | 2023-08-28 05:43:31 -0700 |
commit | 011c3ba3f7bc466a04101f81d4f6186001b7aad4 (patch) | |
tree | a6a6555cb5f9b1715bfb451af4c6303b19cdef05 /examples/rust/echo-request-wbody/unit-wasm-conf.json | |
parent | b5bff68fe10962fffa7b28e9e6fd15af72ff13d9 (diff) | |
download | unit-wasm-011c3ba3f7bc466a04101f81d4f6186001b7aad4.tar.gz unit-wasm-011c3ba3f7bc466a04101f81d4f6186001b7aad4.tar.bz2 |
Adding echo Request with body Parsing
Diffstat (limited to '')
-rw-r--r-- | examples/rust/echo-request-wbody/unit-wasm-conf.json | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/examples/rust/echo-request-wbody/unit-wasm-conf.json b/examples/rust/echo-request-wbody/unit-wasm-conf.json new file mode 100644 index 0000000..cb799ee --- /dev/null +++ b/examples/rust/echo-request-wbody/unit-wasm-conf.json @@ -0,0 +1,36 @@ +{ + "listeners": { + "[::1]:8888": { + "pass": "routes" + } + }, + + "settings": { + "http": { + "max_body_size": 1073741824 + } + }, + + "routes": [ + { + "match": { + "uri": "/echo*" + }, + "action": { + "pass": "applications/rust-echo-request" + } + } + ], + + "applications": { + "rust-echo-request": { + "type": "wasm", + "module": "/home/timo/unit1.31/unit-wasm/examples/rust/echo-request-wbody/target/wasm32-wasi/debug/rust_echo_request.wasm", + "request_handler": "uwr_request_handler", + "malloc_handler": "luw_malloc_handler", + "free_handler": "luw_free_handler", + "module_init_handler": "uwr_module_init_handler", + "module_end_handler": "uwr_module_end_handler" + } + } +} |