summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-12-19Node.js: style fixes.Alexander Borisov1-8/+10
No functional changes.
2018-12-19Node.js: changed the unit-http socket constructor.Alexander Borisov1-5/+10
Third-party file descriptors are not supported. Socket "readable" and "writable" options are set true by default.
2018-12-19Node.js: napi_call_function() replaced with napi_make_callback().Alexander Borisov2-27/+63
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-19Node.js: changed the 'data' event calling sequence for the request.Alexander Borisov1-10/+30
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-19Node.js: buffering HTTP headers before writing the body.Alexander Borisov1-10/+13
2018-12-12Node.js: removed unused dependency.Valentin Bartenev1-4/+1
2018-11-15Node.js: npm package readme cleanup.Valentin Bartenev1-18/+2
2018-11-15Node.js: res.write() must return a bool value.Alexander Borisov1-1/+1
2018-11-15Node.js: fixed handling of response header fields.Alexander Borisov2-1/+26
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-15Node.js: added correct exit processing.Alexander Borisov2-18/+43
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-15Node.js: added reference count increment for the Unit object.Alexander Borisov2-0/+13
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-06Node.js: socket.js improvements.Andrey Zelenkov1-18/+20
- Fixed handling of the "options" parameter in Socket() constructor; - Now the connect() method returns "this"; - Deduplicated the address() method; - Added missing "callback" argument to the end() method; - Now the destroy() method returns "this"; - Added "timeout" argument type check in the setTimeout() method.
2018-11-01Node.js: fixed typo in naming rawHeaders() method of request.Andrey Zelenkov1-1/+1
2018-10-31Node.js: added async request execution.Alexander Borisov3-91/+173
2018-10-24Node.js: additional type check for response.setHeader value.Alexander Borisov1-6/+6
2018-10-23Added ability to publish Node.js module.Alexander Borisov3-2/+21
2018-10-03Added Node.js support.Alexander Borisov10-0/+1500