From 113e3606bd1a763850db1afee336bb0d5d434317 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 12:41:44 -0800 Subject: http: nng_http_handler_set_data is now void return (API break) --- docs/ref/migrate/nng1.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'docs/ref/migrate') diff --git a/docs/ref/migrate/nng1.md b/docs/ref/migrate/nng1.md index 8186e5cb..4390de24 100644 --- a/docs/ref/migrate/nng1.md +++ b/docs/ref/migrate/nng1.md @@ -230,16 +230,20 @@ they may be silently truncated to the limit: - The fixed part of URI pathnames used with HTTP handlers is limited to 1024 bytes. The following API calls have changed so that they are `void` returns, and cannot fail. -They may silently truncate data, and the handler methods may not have any effect if the handler is already in use. +They may silently truncate data. - [`nng_http_req_set_method`] - [`nng_http_res_set_status`] - [`nng_http_handler_collect_body`] +- [`nng_http_handler_set_data`] - [`nng_http_handler_set_host`] - [`nng_http_handler_set_method`] - [`nng_http_handler_set_tree`] - [`nng_http_handler_set_tree_exclusive`] +The HTTP handler objects may not be modified once in use. Previously this would fail with `NNG_EBUSY`. +These checks are removed now, but debug builds will assert if an application tries to do so. + ## Security Descriptors (Windows Only) The `NNG_OPT_IPC_SECURITY_DESCRIPTOR` option is removed, and replaced -- cgit v1.2.3-70-g09d2