diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-09-09 01:57:09 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-09-12 17:21:11 +0100 |
commit | 1beab00acdebc1263f83d393742271d31031bde3 (patch) | |
tree | ad57f8fd45f1814290d4e9ea0fc26c629ac18276 /API-Rust.md | |
parent | 44442b8c85399e4baa49c28a436ce0c3aeb5deb1 (diff) | |
download | unit-wasm-1beab00acdebc1263f83d393742271d31031bde3.tar.gz unit-wasm-1beab00acdebc1263f83d393742271d31031bde3.tar.bz2 |
libunit-wasm: Allow to set the HTTP response status
This adds a new luw_http_set_response_status() function that takes one
of the luw_http_status_t response status codes.
This function should be called before any calls to
luw_http_send_headers() or luw_http_send_response().
This function calls into Unit via a new function import,
nxt_wasm_set_resp_status().
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions