diff options
author | Alexander Borisov <alexander.borisov@nginx.com> | 2018-10-31 15:51:51 +0300 |
---|---|---|
committer | Alexander Borisov <alexander.borisov@nginx.com> | 2018-10-31 15:51:51 +0300 |
commit | c838c3bd1580735e8020687f94e6307f13aba156 (patch) | |
tree | d88247c68c70ec4770d76037bd5fefcb836754ac /src/nodejs/unit-http/unit.h | |
parent | 3b0afb16814353a5d34a7384f4e84e9c17f3fb8e (diff) | |
download | unit-c838c3bd1580735e8020687f94e6307f13aba156.tar.gz unit-c838c3bd1580735e8020687f94e6307f13aba156.tar.bz2 |
Node.js: added async request execution.
Diffstat (limited to '')
-rw-r--r-- | src/nodejs/unit-http/unit.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/nodejs/unit-http/unit.h b/src/nodejs/unit-http/unit.h index 753a14d8..90c67efc 100644 --- a/src/nodejs/unit-http/unit.h +++ b/src/nodejs/unit-http/unit.h @@ -36,13 +36,13 @@ private: static napi_value create_server(napi_env env, napi_callback_info info); static napi_value listen(napi_env env, napi_callback_info info); + static napi_value _read(napi_env env, napi_callback_info info); static void request_handler(nxt_unit_request_info_t *req); + static int add_port(nxt_unit_ctx_t *ctx, nxt_unit_port_t *port); + static void remove_port(nxt_unit_ctx_t *ctx, nxt_unit_port_id_t *port_id); napi_value get_server_object(); - napi_value emit(napi_value obj, const char *name, size_t name_len, - size_t argc, napi_value *argv); - napi_value create_socket(napi_value server_obj, nxt_unit_request_info_t *req); @@ -52,8 +52,6 @@ private: napi_value request, nxt_unit_request_info_t *req, Unit *obj); - void emit_post_data(napi_value request, nxt_unit_request_info_t *req); - static napi_value response_send_headers(napi_env env, napi_callback_info info); |