diff options
| author | Konstantin Pavlov <thresh@nginx.com> | 2018-11-15 16:23:35 +0300 |
|---|---|---|
| committer | Konstantin Pavlov <thresh@nginx.com> | 2018-11-15 16:23:35 +0300 |
| commit | 6ccba253f8d415337a09fb935606447791ce308c (patch) | |
| tree | e0f9a8c5e8ede8cef1500c316d7534dd8de7b972 /src/nodejs/unit-http/unit.h | |
| parent | bdde42999b36af85f2f04c0872fdd3e30af52027 (diff) | |
| parent | a4b02e17382ccbfc19410c644004c4615b2c2c29 (diff) | |
| download | unit-6ccba253f8d415337a09fb935606447791ce308c.tar.gz unit-6ccba253f8d415337a09fb935606447791ce308c.tar.bz2 | |
Merged with the default branch.1.6-1
Diffstat (limited to 'src/nodejs/unit-http/unit.h')
| -rw-r--r-- | src/nodejs/unit-http/unit.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nodejs/unit-http/unit.h b/src/nodejs/unit-http/unit.h index 753a14d8..5f541cc4 100644 --- a/src/nodejs/unit-http/unit.h +++ b/src/nodejs/unit-http/unit.h @@ -36,13 +36,14 @@ 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); + static void quit(nxt_unit_ctx_t *ctx); 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 +53,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); |
