diff options
-rw-r--r-- | src/rust/unit-wasm-sys/rusty.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/rust/unit-wasm-sys/rusty.rs b/src/rust/unit-wasm-sys/rusty.rs index 5135f56..be7a5e1 100644 --- a/src/rust/unit-wasm-sys/rusty.rs +++ b/src/rust/unit-wasm-sys/rusty.rs @@ -95,14 +95,18 @@ pub fn uwr_get_http_server_name(ctx: *const luw_ctx_t) -> &'static str { C2S!(luw_get_http_server_name(ctx)) } -pub fn uwr_get_http_content(ctx: *const luw_ctx_t) -> *const u8 { - unsafe { luw_get_http_content(ctx) } -} - pub fn uwr_get_http_content_len(ctx: *const luw_ctx_t) -> usize { unsafe { luw_get_http_content_len(ctx) } } +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_content(ctx: *const luw_ctx_t) -> *const u8 { + unsafe { luw_get_http_content(ctx) } +} + pub fn uwr_get_http_content_str(ctx: *const luw_ctx_t) -> &'static str { unsafe { let slice = slice::from_raw_parts( @@ -113,10 +117,6 @@ pub fn uwr_get_http_content_str(ctx: *const luw_ctx_t) -> &'static str { } } -pub fn uwr_get_http_content_sent(ctx: *const luw_ctx_t) -> usize { - unsafe { luw_get_http_content_sent(ctx) } -} - pub fn uwr_http_is_tls(ctx: *const luw_ctx_t) -> bool { unsafe { luw_http_is_tls(ctx) } } |