Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.
/ node-http Public archive

🐢 Node.js-like HTTP server for Deno. Makes porting web things from Node (a little bit) easier.

License

Notifications You must be signed in to change notification settings

deno-libs/node-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-http

GitHub Workflow Status Coverage

⚠️ DEPRECATED! Use std/http instead.

Node.js-like HTTP server for Deno. Makes porting web things from Node (a little bit) easier.

Example

import { createServer } from 'https://deno.land/x/node_http/mod.ts'

const s = createServer((req) => req.respond({ body: 'Hello' }))

s.on('error', (err) => console.log(err))

s.on('listening', () => console.log(s.address()))

await s.listen({ port: 3000 })