An HTTP resource factory for NodeJS