Servie transport for HTTP(s).
npm install servie-http --save
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)
servie-http -f index.js -p 4000
servie-http --help
This project is written using TypeScript and publishes the definitions directly to NPM.
Apache 2.0