#include <nng/nng.h>
-int nng_aio_wait(nng_aio *aio);
+int nng_aio_result(nng_aio *aio);
From 768e3f7343fdeab4e8531d8a772e619e6c1c4e2e Mon Sep 17 00:00:00 2001
From: Garrett D'Amore
set HTTP request header
delete HTTP request header
wake all waiters
wake one waiter
read HTTP request
read HTTP response
write all to HTTP connection
write HTTP request
write HTTP response
get HTTP server TLS configuration
get and hold HTTP server instance
release HTTP server instance
load certificate authority from file
load own certificate and key from file
#include <nng/nng.h>
-int nng_aio_wait(nng_aio *aio);
+int nng_aio_result(nng_aio *aio);
#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>
-int nng_cv_wait(nng_cv *cv, nng_time when);
+int nng_cv_until(nng_cv *cv, nng_time when);
@@ -593,7 +593,7 @@ tests for true.
nng_mtx_lock(m);
condition_true = true;
- cv_wake(cv);
+ nng_cv_wake(cv);
nng_mtx_unlock(m);
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
-int nng_http_handler_get_data(nng_http_handler *handler, void *data,
- void (*dtor)(void *));
+void *nng_http_handler_get_data(nng_http_handler *handler);
diff --git a/man/tip/nng_http_handler_set_data.3http.html b/man/tip/nng_http_handler_set_data.3http.html
index b587d005..0674ba2b 100644
--- a/man/tip/nng_http_handler_set_data.3http.html
+++ b/man/tip/nng_http_handler_set_data.3http.html
@@ -516,7 +516,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
nng_http_handler_get_data - set extra data for HTTP handler
+nng_http_handler_set_data - set extra data for HTTP handler
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
-void *nng_http_handler_get_data(nng_http_handler *handler, void *data,
+int nng_http_handler_set_data(nng_http_handler *handler, void *data,
void (*dtor)(void *));
nng_http_req_set_header - set HTTP request header
+nng_http_req_del_header - delete HTTP request header
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
-int nng_http_req_set_header(nng_http_req *req, const char *key);
+int nng_http_req_del_header(nng_http_req *req, const char *key);
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
-const char *nng_http_req_get_method(nng_http_req *req);
+const char *nng_http_req_get_uri(nng_http_req *req);
@@ -538,7 +538,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
The nng_http_req_get_uri() returns the URI (path) associated with the HTTP
-the request req.
+request req.
The value returned includes the path, as well as any query information or
fragment. The value will look like a file system path
with those optional components appended, such as /api/get_info.cgi?name=garrett.
#include <nng/nng.h>
#include <nng/supplemental/http/http.h>
-int nng_http_server_set_error_file(nng_http_server *server,
+int nng_http_server_res_error(nng_http_server *server,
nng_http_res *response);
The nng_http_server_stop() stops the HTTP server instance server.
-This will cause it to close any underlying TCP sockets, and to terminate
-any HTTP connections associated with it.
The nng_http_server_stop() undoes the effect of
+nng_http_server_start().
Each call by
+nng_http_server_start() acts as reference
+count, and should be matched by a call to nng_http_server_stop().
+When the reference count drops to zero, then the server is actually stopped,
+and existing open connections to it are closed.
This function does not wait for the connections to close.
+| + + | +
+Once the server instance is actually stopped, it cannot be started again,
+and any future calls to nng_http_server_hold()
+will return a new instance of the server.
+It is expected that the caller will follow this function call with a call to
+nng_http_server_release().
+ |
+
For example, the same port 80 on the IPv6 loopback address (::1) would
be specified as tcp://[::1]:80.
| - - | --When using symbolic names, the name is resolved when the -name is first used. nng won’t become aware of changes in the -name resolution until restart, -usually. -(This is a bug and will likely be fixed in the future.) - | -
The special value of 0 (INADDR_ANY)
can be used for a listener to indicate that it should listen on all
diff --git a/man/tip/nng_tls.7.html b/man/tip/nng_tls.7.html
index 9ba38340..25e4e389 100644
--- a/man/tip/nng_tls.7.html
+++ b/man/tip/nng_tls.7.html
@@ -665,22 +665,6 @@ separating the port.
For example, the same port 4433 on the IPv6 loopback address ('::1') would
be specified as tls+tcp://[::1]:4433.
| - - | --When using symbolic names, the name is resolved when the -name is first used. nng won’t become aware of changes in the -name resolution until restart, -usually. -(This is a bug and will likely be fixed in the future.) - | -
| -When using symbolic names, the name is resolved when the -name is first used. nng won’t become aware of changes in the -name resolution until restart, -usually. (This is a bug and will likely be fixed in the future.) - | -
| - - | -
The value specified as the host, if any, will also be used
in the Host: HTTP header during HTTP negotiation.
|
--
cgit v1.2.3-70-g09d2