summaryrefslogtreecommitdiffhomepage
path: root/auto/test_build
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-09-08 21:51:25 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-09-25 13:49:36 +0100
commit76086d6d7a027ddf42d86897200a53d724fb4bb7 (patch)
treeac1b5f1a4c64641d0510e9ab289ffd1a99b47beb /auto/test_build
parentc9961610ed5651bda63191465e70e8227c3ef711 (diff)
downloadunit-76086d6d7a027ddf42d86897200a53d724fb4bb7.tar.gz
unit-76086d6d7a027ddf42d86897200a53d724fb4bb7.tar.bz2
Wasm: Allow to set the HTTP response status.
This commit enables WebAssembly modules to set the HTTP response status to something other than the previously hard coded '200 OK'. To do this they can make a call to nxt_wasm_set_resp_status() providing the required status code. If this function isn't called the status code defaults to '200 OK'. The WebAssembly module can also return -1 from the request_handler function as a short cut to signal a '500 Internal Server Error'. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'auto/test_build')
0 files changed, 0 insertions, 0 deletions