summaryrefslogtreecommitdiffhomepage
path: root/API-Rust.md
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-08-29 23:30:21 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-08-29 23:30:21 +0100
commit5dc0cf051059ac83899b55f4a55df363faea4419 (patch)
tree0d93c67fc733d55f9f9eebe176bfad3bf1984738 /API-Rust.md
parentf748851daf87ce40cd2fed8c205afc4482c689a1 (diff)
downloadunit-wasm-5dc0cf051059ac83899b55f4a55df363faea4419.tar.gz
unit-wasm-5dc0cf051059ac83899b55f4a55df363faea4419.tar.bz2
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 <a.clayton@nginx.com>
Diffstat (limited to '')
-rw-r--r--API-Rust.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/API-Rust.md b/API-Rust.md
index 8a98fe6..434b082 100644
--- a/API-Rust.md
+++ b/API-Rust.md
@@ -67,6 +67,7 @@ and there isn't a real need to create wrappers specifically for them.
* [uwr_get_http_content_str](#uwr_get_http_content_str)
* [uwr_get_http_content_len](#uwr_get_http_content_len)
* [uwr_get_http_content_sent](#uwr_get_http_content_sent)
+ * [uwr_get_http_total_content_sent](#uwr_get_http_total_content_sent)
* [uwr_http_is_tls](#uwr_http_is_tls)
* [uwr_http_hdr_iter](#uwr_http_hdr_iter)
* [uwr_http_hdr_get_value](#uwr_http_hdr_get_value)
@@ -622,6 +623,16 @@ This function returns the length of the content that was sent to the
WebAssembly module in _this_ request. Remember, a single HTTP request may be
split over several calls to luw_request_handler().
+### uwr_get_http_total_content_sent
+
+```Rust
+pub fn uwr_get_http_total_content_sent(ctx: *const luw_ctx_t) -> usize;
+```
+
+This function returns the total length of the content that was sent to the
+WebAssembly module so far. Remember, a single HTTP request may be split over
+several calls to luw_request_handler().
+
### uwr_http_is_tls
```Rust