mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
* run-eval.test.ts * transpiler-cache.test.ts * node net * some open things * a * a * yikes * incredible * run it back * a * this code is what i like to call, incorrect * ok its all worng * remove an assertion that is wrong again * update test things and rebase * performance test * mark filesink with mkfifo as todo. see #8166 * hehe * not done * awa * fs test pass --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
18 lines
357 B
JavaScript
Generated
18 lines
357 B
JavaScript
Generated
const { connect } = require("tls");
|
|
|
|
const socket = connect(
|
|
{
|
|
host: "www.example.com",
|
|
port: 443,
|
|
rejectUnauthorized: false,
|
|
},
|
|
() => {
|
|
socket.on("data", () => {
|
|
console.error("Received data. FAIL");
|
|
process.exit(1);
|
|
});
|
|
socket.write("GET / HTTP/1.1\r\nHost: www.example.com\r\n\r\n\r\n");
|
|
},
|
|
);
|
|
socket.unref();
|