1.0.4 • Published 5 years ago

@plant/http v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

Node HTTP for Plant

Plant adapter for native node.js http module. It creates server listener from plant instance.

Install

npm i @plant/http

Usage

const Plant = require('@plant/plant');
const {createServer} = require('@plant/http');

const plant = new Plant();

plant.use(({res}) => {
  res.body = 'Ok';
});

createServer(plant).listen(80);

License

MIT © Rumkin

1.0.4

5 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.1.0

7 years ago