hapi-set-header

1.0.2 • Public • Published

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');

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    144
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    144
  • 1.0.1
    7
  • 1.0.0
    7

Package Sidebar

Install

npm i hapi-set-header

Weekly Downloads

152

Version

1.0.2

License

MIT

Last publish

Collaborators

  • davidwood