History log of /unit/test/node/404/ (Results 1 – 3 of 3)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: 1.28.0-1, 1.28.0, 1.27.0-1, 1.27.0, 1.26.1-1, 1.26.1, 1.26.0-1, 1.26.0, 1.25.0-1, 1.25.0, 1.24.0-1, 1.24.0
1865:3c551b9721df12-May-2021 Oisin Canty

Node.js: a shim for overriding "http" and "websocket" modules.

Also added stubs for Server.address()
This was done to prevent crashes in some popular frameworks like express

Supports both CommonJS

Node.js: a shim for overriding "http" and "websocket" modules.

Also added stubs for Server.address()
This was done to prevent crashes in some popular frameworks like express

Supports both CommonJS and the new ES Modules system syntax e.g:

app.js:
const http = require('http')

app.mjs:
import http from "http"

Usage on Node 14.16.x and higher:
{
"type": "external",
"processes": {"spare": 0},
"working_directory": '/project',
"executable": "/usr/bin/env",
"arguments": [
"node",
"--loader",
"unit-http/require_shim.mjs"
"--require",
"unit-http/require_shim",
"app.js"
]
}

Usage on Node 14.15.x and lower:
{
"type": "external",
"processes": {"spare": 0},
"working_directory": '/project',
"executable": "/usr/bin/env",
"arguments": [
"node",
"--require",
"unit-http/require_shim",
"app.js"
]
}

show more ...


/unit/docs/changes.xml
/unit/src/nodejs/unit-http/http.js
/unit/src/nodejs/unit-http/http_server.js
/unit/src/nodejs/unit-http/require_shim.js
/unit/src/nodejs/unit-http/require_shim.mjs
app.js
/unit/test/node/basic/app.js
/unit/test/node/double_end/app.js
/unit/test/node/get_header_names/app.js
/unit/test/node/get_header_type/app.js
/unit/test/node/get_variables/app.js
/unit/test/node/has_header/app.js
/unit/test/node/header_name_case/app.js
/unit/test/node/header_name_valid/app.js
/unit/test/node/header_value_object/app.js
/unit/test/node/mirror/app.js
/unit/test/node/post_variables/app.js
/unit/test/node/promise_end/app.js
/unit/test/node/promise_handler/app.js
/unit/test/node/remove_header/app.js
/unit/test/node/require_shim/es_modules_http/app.mjs
/unit/test/node/require_shim/es_modules_http_indirect/app.js
/unit/test/node/require_shim/es_modules_http_indirect/module.mjs
/unit/test/node/require_shim/es_modules_websocket/app.mjs
/unit/test/node/require_shim/es_modules_websocket_indirect/app.js
/unit/test/node/require_shim/es_modules_websocket_indirect/module.mjs
/unit/test/node/require_shim/transitive_dependency/app.js
/unit/test/node/require_shim/transitive_dependency/transitive_http.js
/unit/test/node/require_shim/unit_http/app.js
/unit/test/node/set_header_array/app.js
/unit/test/node/status_message/app.js
/unit/test/node/update_header/app.js
/unit/test/node/variables/app.js
/unit/test/node/websockets/mirror/app.js
/unit/test/node/websockets/mirror_fragmentation/app.js
/unit/test/node/write_before_write_head/app.js
/unit/test/node/write_buffer/app.js
/unit/test/node/write_callback/app.js
/unit/test/node/write_multiple/app.js
/unit/test/node/write_return/app.js
/unit/test/test_node_application.py
/unit/test/test_node_es_modules.py
/unit/test/unit/applications/lang/node.py
/unit/test/unit/check/node.py
Revision tags: 1.23.0-1, 1.23.0, 1.22.0-1, 1.22.0, 1.21.0-1, 1.21.0, 1.20.0-1, 1.20.0, 1.19.0-1, 1.19.0, 1.18.0-1, 1.18.0, 1.17.0-1, 1.17.0, 1.16.0-1, 1.16.0, 1.15.0-1, 1.15.0, 1.14.0-1, 1.14.0, 1.13.0-1, 1.13.0, 1.12.0-1, 1.12.0, 1.11.0-2, 1.11.0-1, 1.11.0, 1.10.0-2, 1.10.0-1, 1.10.0
1114:6d87da79ec4e06-Aug-2019 Valentin Bartenev

Node.js: returning "this" from writeHead() to allow chaining.

In Node.js version 11.10.0 and later, the writeHead() function returns "this".

Revision tags: 1.9.0-1, 1.9.0, 1.8.0-1, 1.8.0, 1.7.1-1, 1.7.1, 1.7-1, 1.7
855:f143c7953df725-Oct-2018 Sergey Kandaurov

Tests: Node.js application tests.