diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2023-09-09 02:04:30 +0100 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2023-09-12 17:21:11 +0100 |
| commit | 43b84013e5383d0b2f915c6fbf8c71acc281c1ad (patch) | |
| tree | 81d77cf3118065c531f600617dd718ff0b26dc4a /src/rust/unit-wasm-sys/lib.rs | |
| parent | 1beab00acdebc1263f83d393742271d31031bde3 (diff) | |
| download | unit-wasm-43b84013e5383d0b2f915c6fbf8c71acc281c1ad.tar.gz unit-wasm-43b84013e5383d0b2f915c6fbf8c71acc281c1ad.tar.bz2 | |
rust/rusty: Add a wrapper for the new luw_http_set_response_status()
The new uwr_http_set_response_status() function allows to set the HTTP
response status in Rust WebAssembly modules. It takes one of the
luw_http_status_t response status values.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src/rust/unit-wasm-sys/lib.rs')
| -rw-r--r-- | src/rust/unit-wasm-sys/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rust/unit-wasm-sys/lib.rs b/src/rust/unit-wasm-sys/lib.rs index 81cd464..4e1bf02 100644 --- a/src/rust/unit-wasm-sys/lib.rs +++ b/src/rust/unit-wasm-sys/lib.rs @@ -18,3 +18,4 @@ mod bindings { #[doc(no_inline)] pub use bindings::*; +pub use bindings::luw_http_status_t::*; |
