node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org ยป

organic-httpserver

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
}