Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quinn

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quinn

Maybe coming some day.

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Maybe coming some day.

Request handler

This is what others might call an "application". But "application is a pretty silly name.

function(request, params) {
    return response;
}
request

A node.js request object, as documented in the offical node.js docs. There are no additional properties, no magical extension methods.

params

Think: the "arguments". This can be path parameters, query parameters. params should never contain anything other than simple data. By default params defaults to an empty object. If a request handler forwards to a different handler, it should forward all params that were passed in. Injecting magic catch-all params is highly discouraged. Say no to params.cookies or .session or any other funny business. params SHOULD be a simple object. Any other kind of value should be the exception.

response

Describes the response that should be returned. A proper response has a method to pipe to node.js response stream. It's also valid to return any of the things that can be coerced into a response object by quinn.respond.

FAQs

Package last updated on 23 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc