From 5dc0cf051059ac83899b55f4a55df363faea4419 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Tue, 29 Aug 2023 23:30:21 +0100 Subject: Rust/rusty: Add a wrapper for luw_get_http_total_content_sent() This returns the total amount of content that the Wasm module has received so far. Signed-off-by: Andrew Clayton --- src/rust/unit-wasm-sys/rusty.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/rust/unit-wasm-sys/rusty.rs b/src/rust/unit-wasm-sys/rusty.rs index be7a5e1..81b3e5b 100644 --- a/src/rust/unit-wasm-sys/rusty.rs +++ b/src/rust/unit-wasm-sys/rusty.rs @@ -103,6 +103,10 @@ pub fn uwr_get_http_content_sent(ctx: *const luw_ctx_t) -> usize { unsafe { luw_get_http_content_sent(ctx) } } +pub fn uwr_get_http_total_content_sent(ctx: *const luw_ctx_t) -> usize { + unsafe { luw_get_http_total_content_sent(ctx) } +} + pub fn uwr_get_http_content(ctx: *const luw_ctx_t) -> *const u8 { unsafe { luw_get_http_content(ctx) } } -- cgit