Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    organic-httpserverpublic

    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
    }
    

    Keywords

    none

    install

    npm i organic-httpserver

    Downloadslast 7 days

    0

    version

    0.0.2

    license

    none

    last publish

    collaborators

    • avatar