Commit Graph
33 Commits
Author SHA1 Message Date
Alexander Borisov 2bc8fb7b43 Node.js: fixed module version on installation from sources. 2019-01-23 17:47:53 +03:00
Alexander Borisov 2677bd5604 Go: fixed module installation, broken in ed8b1aaefdd1.
Added the nxt_unit_version.h dependency.
This closes #214 issue on GitHub.
2019-01-21 18:13:00 +03:00
Alexander Borisov 98e8f366da Node.js: removed value checking for headers. 2018-12-19 15:57:07 +03:00
Alexander Borisov d9dad07934 Node.js: removed unused _implicitHeader() function. 2018-12-19 15:57:04 +03:00
Alexander Borisov d6f38a3268 Node.js: added check for libunit version at compile time. 2018-12-19 15:56:57 +03:00
Alexander Borisov c55f329ecf libunit: added generation of version header file. 2018-12-19 15:56:54 +03:00
Alexander Borisov ab461437b5 Node.js: checking for exception after running JS code from C++. 2018-12-19 15:56:37 +03:00
Alexander Borisov dcf51274ce Node.js: checking uniqueness of HTTP headers for different case. 2018-12-19 15:56:30 +03:00
Alexander Borisov 607653c0f1 Node.js: calling write callback asynchronously. 2018-12-19 15:56:13 +03:00
Alexander Borisov 704fe556b4 Node.js: style fixes.
No functional changes.
2018-12-19 15:56:09 +03:00
Alexander Borisov dc16885b60 Node.js: changed the unit-http socket constructor.
Third-party file descriptors are not supported.
Socket "readable" and "writable" options are set true by default.
2018-12-19 15:56:06 +03:00
Alexander Borisov f47a5db506 Node.js: napi_call_function() replaced with napi_make_callback().
The sequence of napi_open_callback_scope(),
napi_call_function(), and napi_close_callback_scope() functions calls
executes the provided JS code and all functions enqueued by
process.nextTick() and Promises during this execution.
2018-12-19 15:56:01 +03:00
Alexander Borisov 13c9ebccca Node.js: changed the 'data' event calling sequence for the request.
The problem is caused by Promises' inconsistency.
The 'date' event could have been triggered before the user has started
listening for it.  To resolve the issue, we override the 'on' method of
the request's emitter.
2018-12-19 15:55:58 +03:00
Alexander Borisov de3c062c6e Node.js: buffering HTTP headers before writing the body. 2018-12-19 15:55:54 +03:00
Alexander Borisov 5c2021f834 Node.js: res.write() must return a bool value. 2018-11-15 14:42:51 +03:00
Alexander Borisov fb18a09cd7 Node.js: fixed handling of response header fields.
This fixes two issues:

- values for mutiple header fields with the same name
  passed as arrays were converted to string;

- the type of field value wasn't preserved as required
  by specification.
2018-11-15 15:21:52 +03:00
Alexander Borisov 06b404feb1 Node.js: added correct exit processing.
Node.js processes didn't exit after the changes in b9f7635e6be2,
as the quit command from port wasn't handled by the module.
2018-11-15 15:39:34 +03:00
Alexander Borisov 71f4cb9134 Node.js: added reference count increment for the Unit object.
We increase the number to the Unit object so that it lives forever.
This is necessary so that the garbage collector does not delete the Unit object.
2018-11-15 15:24:45 +03:00
Alexander Borisov c838c3bd15 Node.js: added async request execution. 2018-10-31 15:51:51 +03:00
Alexander Borisov 5b3d3e0a88 Node.js: additional type check for response.setHeader value. 2018-10-24 16:21:53 +03:00
Alexander Borisov 7801814126 Added ability to publish Node.js module. 2018-10-23 13:06:44 +03:00
Alexander Borisov 0ee8de5543 Fixed Makefile target for NodeJS. 2018-10-18 13:38:30 +03:00
Alexander Borisov ea62327b00 Added Node.js support. 2018-10-03 17:50:03 +03:00
Alexander Borisov c67fbf01ad Perl: use of portable macro instead of an explicit declaration. 2018-08-08 15:04:43 +03:00
Alexander Borisov a27e76779f Ruby: added "require('bundler/setup')".
This closes #93 PR on GitHub.
2018-07-10 15:43:59 +03:00
Alexander Borisov da22c2ca96 Python: returning write() callable object from start_response().
According to PEP (3)333 the start_respose() function must return
a write() callable.

This closes #107 issue on GitHub.
2018-04-19 17:35:07 +03:00
Alexander Borisov 49bd3a21e0 Changed version processing for modules. 2018-04-04 18:53:39 +03:00
Alexander Borisov f2c0c18f8b Ruby: added 'enc/trans/transdb' module for converting encodings.
This closes #92 issue on GitHub.
2018-04-03 16:26:22 +03:00
Alexander Borisov 37051b6c15 Added Ruby support. 2018-03-21 16:50:07 +03:00
Alexander Borisov 41c872010a Perl: improvements to support PSGI specification. 2018-03-19 16:46:17 +03:00
Alexander Borisov 433eadc2e9 Perl: fixed IO-Object duplication bug. 2018-02-08 16:28:52 +03:00
Alexander Borisov 79259d1ebd Perl: added more checks for 'body' variable 2018-02-06 21:13:57 +03:00
Alexander Borisov 960962ddce Added Perl support. 2018-01-31 15:47:00 +03:00