serviejs / servie-compat-http

**DEPRECATED** Map Servie `Request` and `Response` instances to node.js HTTP compatible objects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Servie Compat HTTP

NPM version NPM downloads Build status Test coverage

Map Servie Request and Response instances to node.js HTTP objects.

DEPRECATED: As an interesting experiment someone can reference.

Installation

npm install servie-compat-http --save

Usage

import { createServer } from 'servie-compat-http'

export const server = createServer(function (req, res, next) {
  res.write('hello world')
  res.end()
})

Additional Resources

  • router Express.js-like router for HTTP
  • compose-middleware Compose an array of HTTP middleware into a single function
  • connect Simple middleware framework
  • express Minimal web framework for node

TypeScript

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

License

Apache 2.0

About

**DEPRECATED** Map Servie `Request` and `Response` instances to node.js HTTP compatible objects

License:Other


Languages

Language:TypeScript 100.0%