2.0.1 • Published 5 years ago

servie-http v2.0.1

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
5 years ago

Servie Http

NPM version NPM downloads Build status Test coverage

Servie transport for HTTP(s).

Installation

npm install servie-http --save

Usage

import { createServer } from 'http'
import { createHandler } from 'servie-http'
import { get } from 'servie-route'

const handler = createHandler(get('/test', (req) => {
  return new Response({ statusCode: 200 }))
})

createServer(handler).listen(3000)

CLI

servie-http -f index.js -p 4000

servie-http --help

TypeScript

This project is written using TypeScript and publishes the definitions directly to NPM.

License

Apache 2.0

2.0.1

5 years ago

2.0.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago