organic-httpserver

The organelle wraps core httpServer implementation.

npm install organic-httpserver
2 downloads in the last week
11 downloads in the last month

organic-httpserver

The organelle wraps core httpServer implementation.

DNA structure and defaults

{
  "log": false,
  "port": Number,
  "emit": {
    "ready": String,
    "request": String
  }
}

Reactions

started listening

Emitted with Chemical type value of dna.emit.ready. Chemical's structure:

{
  "type": `dna.emit.ready`,
  "data": HttpServer
}

incoming request

Emitted with Chemical type value of dna.emit.request. Chemical's structure:

{
  "type": `dna.emit.request`,
  "req": HttpRequest,
  "res": HttpResponse
}
npm loves you