summaryrefslogtreecommitdiffhomepage
path: root/src/nodejs/unit-http/unit.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-03-03Node.js: fixing x86 warning about the signed/unsigned comparison.Max Romanov1-2/+1
2020-01-28Node.js: suppress compilation warning.Max Romanov1-1/+1
2019-12-24Node.js: implementing output message drain using SHM_ACK feature.Max Romanov1-16/+74
ServerResponse.write() method tries to write data buffer using libunit and stores buffers to write in a Server-wide output queue, which is processed in response to SHM_ACK message from router. As a side effect 'drain' event implemented and socket.writable flag reflect current state.
2019-11-11Fixing libunit 'off by 2' issue in library.Max Romanov1-9/+12
Name and value in each header are 0-terminated, so additional 2 bytes should be allocated for them. There were several attempts to add these 2 bytes to headers in language modules, but some modules weren't updated. Also, adding these 2 bytes is specific to the implementation which may be changed later, so extending this mechanics to modules may cause errors.
2019-08-20Node.js: introducing websocket support.Max Romanov1-134/+383
2019-04-17Node.js: using low-case header names as key in req.headers.Max Romanov1-4/+17
Node.js modules (body-parser, row-body) search low-cased names ('content-length', 'content-type' etc.) to properly assemble request body. This closes #246 issue on GitHub.
2019-04-02Removing unused variables and assignments.Max Romanov1-8/+5
Warnings introduced in 53533ba0097c commit.
2019-04-01Adding 'connection' to request as an alias to 'socket'.Max Romanov1-4/+11
Adding actual 'remoteAddress' and 'localAddress' into socket object. This closes #232 issue on GitHub.
2019-04-01Introducing close event to notify about server stop.Max Romanov1-0/+21
This closes #236 on GitHub. Thanks to 0xcdcdcdcd.
2019-04-01Adding syntax sugar.Max Romanov1-626/+201
With exceptions and overloads.
2019-03-11Style.Andrey Zelenkov1-1/+1
2018-12-19Node.js: checking for exception after running JS code from C++.Alexander Borisov1-3/+20
2018-12-19Node.js: checking uniqueness of HTTP headers for different case.Alexander Borisov1-2/+12
2018-12-19Node.js: napi_call_function() replaced with napi_make_callback().Alexander Borisov1-15/+58
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-11-15Node.js: fixed handling of response header fields.Alexander Borisov1-0/+25
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 Borisov1-18/+42
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 Borisov1-0/+11
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-01Node.js: fixed typo in naming rawHeaders() method of request.Andrey Zelenkov1-1/+1
2018-10-31Node.js: added async request execution.Alexander Borisov1-82/+145
2018-10-03Added Node.js support.Alexander Borisov1-0/+905