[ bianca ]
[ 原始碼: node-accepts ]
套件:node-accepts(1.3.8-2)
higher-level content negotiation for Node.js
Higher level content negotiation based on negotiator.
In addition to negotiator, it allows:
- Allows types as an array or arguments list, ie
`(['text/html', 'application/json'])`
as well as `('text/html', 'application/json')`.
- Allows type shorthands such as `json`.
- Returns `false` when no types match
- Treats non-existent headers as `*`
Node.js is an event-based server-side JavaScript engine.
其他與 node-accepts 有關的套件
|
|
|
|
-
- dep: node-mime-types
- ultimate JavaScript content-type utility - Node.js module
-
- dep: node-negotiator
- HTTP content negotiator for Node.js