Snippets Collections
const http = require('http');  
// Create an instance of the http server 
// to handle HTTP requests
let app = http.createServer((req, res) => {
    // Set a response type of plain text 
//     for the response
...    res.writeHead(200, {'Content-Type': 'text/plain'});
    // Send back a response and end the connection
...    res.end('Hello World!\n');
});
// Start the server on port 3000
app.listen(3000, '127.0.0.1');
console.log('Node server running on port 3000');
star

Sat Feb 26 2022 08:28:58 GMT+0000 (Coordinated Universal Time) http://psyopwriter.com

#https #server #javascript #serverup #snippet
star

Thu Oct 29 2020 14:38:39 GMT+0000 (Coordinated Universal Time) https://dev.to/adamkdean/automatic-ssl-with-let-s-encrypt-nginx-4nfk

##nginx #+ssl #https #ssl

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension