https://github.com/anzerr/http.server
Simple http server
https://github.com/anzerr/http.server
http nodejs server util
Last synced: 9 months ago
JSON representation
Simple http server
- Host: GitHub
- URL: https://github.com/anzerr/http.server
- Owner: anzerr
- License: mit
- Created: 2018-12-10T15:06:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-01-21T16:21:41.000Z (about 4 years ago)
- Last Synced: 2025-05-22T03:47:56.019Z (11 months ago)
- Topics: http, nodejs, server, util
- Language: JavaScript
- Homepage:
- Size: 136 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### `Intro`

Simple http server interface
#### `Install`
``` bash
npm install --save git+https://github.com/anzerr/http.server.git
npm install --save @anzerr/http.server
```
### `Example`
``` javascript
const {Server} = require('http.server');
let s = new Server(3670);
s.create((req, res) => {
console.log('req');
res.status(200).send(':)');
}).then(() => {
console.log('started server');
});
```