organic-httpserver

0.0.2 • Public • Published

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
}

/organic-httpserver/

    Package Sidebar

    Install

    npm i organic-httpserver

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Last publish

    Collaborators

    • outbounder