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

https://github.com/pandres95/deno-http-server

Minimal HTTP Server for Deno
https://github.com/pandres95/deno-http-server

deno http-server javascript

Last synced: 2 months ago
JSON representation

Minimal HTTP Server for Deno

Awesome Lists containing this project

README

          

# MiniServer: Minimal HTTP Server for Deno

## Install
Import the module from `https://raw.githubusercontent.com/pandres95/deno-http-server/master/server.js`.

## Usage

```javascript
import { MiniServer } from 'https://raw.githubusercontent.com/pandres95/deno-http-server/master/server.js';

const server = new MiniServer({
port: 8000
});

server
.get('/', async request => {
request.json({
body: {
hello: 'deno 🦕'
}
});
})
.listen();

```