const port = 5000;
const app = new Server({
handler: (req, connInfo) => {
const res = new Response('hello', { status: 200 });
logger({ ip: true })(req, res, connInfo);
return res;
},
port: port,
});
console.log(`Listening on localhost:${port}`);
await app.listenAndServe();
-
Notifications
You must be signed in to change notification settings - Fork 0
Tiny Deno Http Logger middleware
License
aarontravass/http_logger
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Tiny Deno Http Logger middleware