server-signature
v1.6.0
Published
server response header field
Downloads
912
Readme
server-signature
Controls whether Server response header field which is sent back to clients includes a description of the generic OS-type of the server. Similar to Apache2.
Installation
Install through NPM
npm install server-signature
or
git clone git://github.com/hex7c0/server-signature.git
API
inside expressjs project
var signature = require('server-signature');
var app = require('express')();
app.use(signature());
signature(options)
options
header
- String Header filed (default "Server")signature
- String ProductOnly of standard string (default "Nodejs")token
- String Type of directive, related to http://httpd.apache.org/docs/2.2/mod/core.html#servertokens (default "Full")custom
- String Rewrite standard string with this (default "disabled")extra
- String Write Extra information after standard or custom string (default "disabled")standalone
- Boolean Return function that returns server-signature (default "false")
Examples
Take a look at my examples
Full string
Server: Nodejs/0.10.30 (Darwin)