diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-09-08 21:51:25 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-09-25 13:49:36 +0100 |
commit | 76086d6d7a027ddf42d86897200a53d724fb4bb7 (patch) | |
tree | ac1b5f1a4c64641d0510e9ab289ffd1a99b47beb /auto | |
parent | c9961610ed5651bda63191465e70e8227c3ef711 (diff) | |
download | unit-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')
0 files changed, 0 insertions, 0 deletions