aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 12:34:46 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 12:34:46 -0800
commit8c14ed19b5c72f060f31767e5bc4106054e41192 (patch)
tree32cf29e73a78077dbaeb7433dfa0d7265de405ba /docs
parenta946d79e8d0eb3a47f75d6e1e98a28462c584d67 (diff)
downloadnng-8c14ed19b5c72f060f31767e5bc4106054e41192.tar.gz
nng-8c14ed19b5c72f060f31767e5bc4106054e41192.tar.bz2
nng-8c14ed19b5c72f060f31767e5bc4106054e41192.zip
nng_http_server_collect_body now void return (API break)
Diffstat (limited to 'docs')
-rw-r--r--docs/man/nng_http_handler_collect_body.3http.adoc11
-rw-r--r--docs/ref/migrate/nng1.md3
2 files changed, 4 insertions, 10 deletions
diff --git a/docs/man/nng_http_handler_collect_body.3http.adoc b/docs/man/nng_http_handler_collect_body.3http.adoc
index b614f675..d02919cd 100644
--- a/docs/man/nng_http_handler_collect_body.3http.adoc
+++ b/docs/man/nng_http_handler_collect_body.3http.adoc
@@ -20,7 +20,7 @@ nng_http_handler_collect_body - set HTTP handler to collect request body
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
-int nng_http_handler_collect_body(nng_http_handler *handler, bool want, size_t maxsz);
+void nng_http_handler_collect_body(nng_http_handler *handler, bool want, size_t maxsz);
----
== DESCRIPTION
@@ -60,15 +60,6 @@ This is considered a bug, and is a deficiency for full HTTP/1.1 compliance.
However, few clients send data in this format, so in practice this should
create few limitations.
-== RETURN VALUES
-
-This function returns 0 on success, and non-zero otherwise.
-
-== ERRORS
-
-[horizontal]
-`NNG_ENOTSUP`:: No support for HTTP in the library.
-
== SEE ALSO
[.text-left]
diff --git a/docs/ref/migrate/nng1.md b/docs/ref/migrate/nng1.md
index 8035f854..8186e5cb 100644
--- a/docs/ref/migrate/nng1.md
+++ b/docs/ref/migrate/nng1.md
@@ -234,8 +234,11 @@ They may silently truncate data, and the handler methods may not have any effect
- [`nng_http_req_set_method`]
- [`nng_http_res_set_status`]
+- [`nng_http_handler_collect_body`]
- [`nng_http_handler_set_host`]
- [`nng_http_handler_set_method`]
+- [`nng_http_handler_set_tree`]
+- [`nng_http_handler_set_tree_exclusive`]
## Security Descriptors (Windows Only)