diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-08-29 22:22:01 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-08-29 23:12:56 +0100 |
commit | 59cb1e8000e1b18e317cb1c19185eb3a1b5d4e9f (patch) | |
tree | 12b36375a6a17ffae594b99c6b4b0951d911ae0b /.gitattributes | |
parent | 5ab50752824ca605cb9a03da9807d70f588d9a6b (diff) | |
download | unit-wasm-59cb1e8000e1b18e317cb1c19185eb3a1b5d4e9f.tar.gz unit-wasm-59cb1e8000e1b18e317cb1c19185eb3a1b5d4e9f.tar.bz2 |
libunit-wasm: Add a luw_get_http_total_content_sent() function
This function returns the total amount of content that the Wasm module
has received so far.
This will be used in the rusty API's uwr_get_http_content_str() function
which returns the body content as a string. Due to the body content not
being null-terminated we need to know how much data to use for the
string, for which we are currently using uwr_get_http_content_len(),
which could in some cases return too much if a request is being split
over multiple calls the module.
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions