xPulse
πŸ‡©πŸ‡ͺ DE
Seiten
Inhalt

Guide

Installation

npm install @xpulse/http --registry=https://npm.xpulse.one

Minimales Beispiel

import http from '@xpulse/http';
await http.init();
http.route('GET', '/', (req, res) => {
res.send('<h1>xPulse</h1>');
});
http.route('GET', '/health', (req, res) => {
res.status(200).send('ok');
});
http.start();
process.on('SIGTERM', () => http.stop());

Trailing Slash

Der Server erzwingt einen Trailing Slash fuer alle Pfade ausser /. /health wird automatisch auf /health/ umgeleitet (308).

de/guide.md 2026-03-16