Skip to content
/ https Public

๐ŸŒŒ Isomorphic https module with createServer support.

Notifications You must be signed in to change notification settings

rill-js/https

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Rill
@rill/https
API stability Standard NPM version Downloads Gitter Chat

Bring a nodejs style server into the client by listening to link clicks and form submissions.

Why

People love node, people love the programming style and it's flexibility. This api exposes the "http" module as an isomorphic server. It essentially allows you to run your nodejs server in the browser for epic progressive enhancement and an isomorphic paradise. This is a low level library used by Rill which implements an express style api on top of this.

Installation

npm install @rill/https

Example

var https = require('@rill/https')

window; //-> [Object object]

var server = https.createServer({ ... }, (req, res)=> {
	console.log(req.method, req.url)
	res.end()
});

/**
 * Listening in the browser will intelegently intercept link clicks and form
 * submissions and feed them into the registered handler.
 */
server.listen()

Contributions

  • Use gulp to run tests.

Please feel free to create a PR!

About

๐ŸŒŒ Isomorphic https module with createServer support.

Resources

Stars

Watchers

Forks

Packages

No packages published