From f7800d315d657d7a702c040d8e3b295d0584b59c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 21 Jan 2020 07:32:59 -0800 Subject: fixes #1141 nng_http_client_transact(), chunked encoding --- include/nng/supplemental/http/http.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/nng/supplemental/http/http.h b/include/nng/supplemental/http/http.h index e0cbd501..cdd9b25f 100644 --- a/include/nng/supplemental/http/http.h +++ b/include/nng/supplemental/http/http.h @@ -1,5 +1,5 @@ // -// Copyright 2018 Staysail Systems, Inc. +// Copyright 2020 Staysail Systems, Inc. // Copyright 2018 Capitar IT Group BV // // This software is supplied under the terms of the MIT License, a @@ -182,7 +182,7 @@ NNG_DECL int nng_http_res_set_status(nng_http_res *, uint16_t); // that the server responds (or responded) with. NNG_DECL const char *nng_http_res_get_reason(nng_http_res *); -// nng_http_res_set_rason sets the human readable status message. +// nng_http_res_set_reason sets the human readable status message. // NULL means that a default reason is used based on the status code. NNG_DECL int nng_http_res_set_reason(nng_http_res *, const char *); @@ -367,15 +367,15 @@ NNG_DECL int nng_http_handler_set_host(nng_http_handler *, const char *); NNG_DECL int nng_http_handler_collect_body(nng_http_handler *, bool, size_t); // nng_http_handler_set_tree indicates that the handler is being registered -// for a heirarchical tree, rather than just a single path, so it will be +// for a hierarchical tree, rather than just a single path, so it will be // called for all child paths supplied. By default the handler is only // called for an exact path match. NNG_DECL int nng_http_handler_set_tree(nng_http_handler *); // nng_http_handler_set_data is used to store additional data, along with -// a possible clean up routine. (The clean up is a custom deallocator and +// a possible clean up routine. (The clean up is a custom de-allocator and // will be called with the supplied data as an argument, when the handler -// is being deallocated.) +// is being de-allocated.) NNG_DECL int nng_http_handler_set_data( nng_http_handler *, void *, void (*)(void *)); @@ -514,8 +514,6 @@ NNG_DECL void nng_http_client_connect(nng_http_client *, nng_aio *); // single HTTP transaction). It will not automatically close the connection, // unless some kind of significant error occurs. The caller should close // the connection if the aio does not complete successfully. -// Note that this will fail with NNG_ENOTSUP if the server attempts to reply -// with a chunked transfer encoding. NNG_DECL void nng_http_conn_transact( nng_http_conn *, nng_http_req *, nng_http_res *, nng_aio *); -- cgit v1.2.3-70-g09d2