From 90902f7f187b04a6cf0a221898e1107939cf9f94 Mon Sep 17 00:00:00 2001 From: Evgeny Ermakov Date: Sun, 16 Feb 2020 08:54:52 +1100 Subject: Update comments in http.h --- include/nng/supplemental/http/http.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/nng/supplemental/http/http.h b/include/nng/supplemental/http/http.h index a2d67be4..ff8616ca 100644 --- a/include/nng/supplemental/http/http.h +++ b/include/nng/supplemental/http/http.h @@ -306,9 +306,9 @@ typedef struct nng_http_handler nng_http_handler; // first output using nng_aio_set_output. If it does not do so, or supplies // NULL, then it must send a response itself. // -// The callback should return 0 in most circumstances; if it returns anything -// other than 0 then the connection is terminated (after possibly sending -// a 500 error response to the client.) +// The callback should complete with a result of 0 in most circumstances. +// If it completes with an error, then the connection is terminated, after +// possibly sending a 500 error response to the client. NNG_DECL int nng_http_handler_alloc( nng_http_handler **, const char *, void (*)(nng_aio *)); @@ -528,8 +528,7 @@ NNG_DECL void nng_http_conn_transact( // nng_http_client_transact is used to execute a single transaction to a // server. The connection is opened, and will be closed when the transaction is -// complete. Note that this will fail with NNG_ENOTSUP if the server attempts -// to reply with a chunked transfer encoding. +// complete. NNG_DECL void nng_http_client_transact( nng_http_client *, nng_http_req *, nng_http_res *, nng_aio *); -- cgit v1.2.3-70-g09d2