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
- Host: GitHub
- URL: https://github.com/pandres95/deno-http-server
- Owner: pandres95
- License: mit
- Created: 2020-05-28T20:12:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-28T21:31:32.000Z (about 6 years ago)
- Last Synced: 2025-08-28T02:34:26.401Z (10 months ago)
- Topics: deno, http-server, javascript
- Language: JavaScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
```