An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

### `Intro`
![GitHub Actions status | publish](https://github.com/anzerr/http.server/workflows/publish/badge.svg)

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');
});
```