aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEvgeny Ermakov <evgeny.v.ermakov@gmail.com>2020-02-16 08:54:52 +1100
committerGarrett D'Amore <garrett@damore.org>2020-02-24 07:17:10 -0800
commit90902f7f187b04a6cf0a221898e1107939cf9f94 (patch)
treec490260c43c5eb4b88bdc78ba81301c8d04f96fd /include
parent15869e302e4f15c4c46bf5dc4bdf2aea96f513e0 (diff)
downloadnng-90902f7f187b04a6cf0a221898e1107939cf9f94.tar.gz
nng-90902f7f187b04a6cf0a221898e1107939cf9f94.tar.bz2
nng-90902f7f187b04a6cf0a221898e1107939cf9f94.zip
Update comments in http.h
Diffstat (limited to 'include')
-rw-r--r--include/nng/supplemental/http/http.h9
1 files changed, 4 insertions, 5 deletions
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 *);