npm

rf-http

0.7.0 • Public • Published

rf-http

A express webserver module.

  • static webserver
  • tries to use 'rf-log'
  • CROS origin requests enabled
  • body parser till 50 mb
    • raw
    • json
    • urlencoded

Getting started

npm install rf-http

var http = require('rf-http').start({
   pathsWebserver: 'dest',
   port: 3000
});


// the webserver is running on port 3000 using folder 'dest' as root
// user express 'app' for further things like
// adding middleware, websockets, etc.


/* http holds
{
 app => express app
 server => reuse the server for websocket
}
*/

Readme

Keywords

none

Package Sidebar

Install

npm i rf-http

Weekly Downloads

73

Version

0.7.0

License

UNLICENSED

Unpacked Size

9.32 kB

Total Files

4

Last publish

Collaborators

  • felix_furtmayr