diff options
Diffstat (limited to 'docs/man/nng_http_handler_alloc.3http.adoc')
| -rw-r--r-- | docs/man/nng_http_handler_alloc.3http.adoc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/man/nng_http_handler_alloc.3http.adoc b/docs/man/nng_http_handler_alloc.3http.adoc index e1238b8f..12c6043a 100644 --- a/docs/man/nng_http_handler_alloc.3http.adoc +++ b/docs/man/nng_http_handler_alloc.3http.adoc @@ -62,13 +62,13 @@ rather than just a single element. The generic (first) form of this creates a handler that uses a user-supplied function to process HTTP requests. This function uses the asynchronous I/O framework. -The function takes a pointer to an `nng_aio` structure. +The function takes a pointer to an <<nng_aio.5#,`nng_aio`>> structure. That structure will be passed with the following input values (retrieved with <<nng_aio_get_input.3#,`nng_aio_get_input()`>>): - 0: ``nng_http_req *`` __request__:: The client's HTTP request. - 1: ``nng_http_handler *``__handler__:: Pointer to the handler object. - 2: ``nng_http_conn *``__conn__:: The underlying HTTP connection. + 0: `nng_http_req *` __request__:: The client's HTTP request. + 1: `nng_http_handler *` __handler__:: Pointer to the handler object. + 2: `nng_http_conn *` __conn__:: The underlying HTTP connection. The handler should create an `nng_http_res *` response (such as via <<nng_http_res_alloc.3http#,`nng_http_res_alloc()`>> or @@ -146,4 +146,5 @@ This function returns 0 on success, and non-zero otherwise. <<nng_http_res_alloc_error.3http#,nng_http_res_alloc_error(3http)>>, <<nng_http_server_add_handler.3http#,nng_http_server_add_handler(3http)>>, <<nng_strerror.3#,nng_strerror(3)>>, +<<nng_aio.5#,nng_aio(5)>>, <<nng.7#,nng(7)>> |
