Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 314 Bytes

File metadata and controls

20 lines (14 loc) · 314 Bytes

@cloud-cli/http

Wrapper for Node.js HTTP server

Install

npm i @cloud-cli/http

Usage

import createServer from '@cloud-cli/http';

// same API as Node.JS http module. Listens to `process.env.PORT` automatically
const server = createServer(function (request, response) {
  // ...
});