npm.io
1.0.2 • Published 10 years ago

hapi-set-header

Licence
MIT
Version
1.0.2
Deps
0
Vulns
0
Weekly
0

hapi-set-header

Circle CI bitHound Overall Score

hapi-set-header allows for globally setting a response header using an onPreResponse extension. Compatible with Boom responses.

Usage

The following example sets the Server header to Test Server

const Hapi = require('hapi');
const setHeader = requre('hapi-set-header');
const server = new Hapi.Server({});
setHeader(server, 'Server', 'Test Server');

Keywords