@kumori/http-message-proxy
v1.0.3
Published
httpProxy for slap components
Downloads
8
Keywords
Readme
Http Message
Http proxy for Kumori Platform components.
Description
This module proxifies a legacy http server connections through Kumori's channels (see Kumori's documentation for more information about channels and Kumori's service application model).
Table of Contents
Installation
Install it as a npm package
npm install -g @kumori/http-proxy
Usage
const http = require('@kumori/http-message')
const httpProxy = require('@kumori/http-proxy')
let server = http.createServer()
let host = 'localhost'
let port = 8080
proxy = httpProxy server, host, port
server.listen(channel, (error) => {
// Do something
})
License
MIT © Kumori Systems