ioserver-http

1.0.1 • Public • Published

IOServer-HTTP

NPM

Downloads per month npm version Build Status Known Vulnerabilities

Simple HTTP(S) server for usage with IOServer.

This will launch a server on port specified (default: 8080) and will listen for all GET requests. This is particulary useful with static content. For dynamic support like PHP and more advanced usage (POST/PUT/etc...) please have a look at Express and/or specific web server like Nginx.

Install

Install with npm:

  npm install ioserver-http

Basic Usage

Require the module:

  IOServerHTTP = require 'ioserver-http'

Instanciate object:

  server = new IOServerHTTP
          share: '/var/www/html'

Start the server...

  server.app.listen('127.0.0.1', 8000)

Package Sidebar

Install

npm i ioserver-http

Weekly Downloads

12

Version

1.0.1

License

Apache-2.0

Unpacked Size

27.4 kB

Total Files

5

Last publish

Collaborators

  • x62en