From 8c14ed19b5c72f060f31767e5bc4106054e41192 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 12:34:46 -0800 Subject: nng_http_server_collect_body now void return (API break) --- docs/man/nng_http_handler_collect_body.3http.adoc | 11 +---------- docs/ref/migrate/nng1.md | 3 +++ 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'docs') 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 #include -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) -- cgit v1.2.3-70-g09d2