3.0.0 • Published 5 years ago

@aptoma/hapi-static-headers v3.0.0

Weekly downloads
21
License
MIT
Repository
github
Last release
5 years ago

Build Status

@aptoma/hapi-static-headers

Hapi Plugin for adding a defined set of headers to be appended to all responses.

Installation

This module is installed via npm:

$ npm install @aptoma/hapi-static-headers

Examples

	const server = new Hapi.Server();

	await server.register({
		plugin: require('@aptoma/hapi-static-headers'),
		options: {
			headers: {
				'X-API-Version': (request) => {
					return request.pre.apiVersion;
				},
				'X-Service': 'The Service'
			}
		}
	});
3.0.0

5 years ago

2.0.0

6 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago