zano 0.1.3

A high-performance Node.js-like runtime built in Rust with JavaScript-compatible syntax, async support, and built-in modules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Simple HTTP server in Zano
const http = require('http');

function handleRequest(req, res) {
    console.log("Request received:", req.url);
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello from Zano server!');
}

const server = http.createServer(handleRequest);

server.listen(3000, function() {
    console.log("Server running on http://localhost:3000");
});