4.0.0 • Published 10 months ago

@aptoma/hapi-static-headers v4.0.0

Weekly downloads
21
License
MIT
Repository
github
Last release
10 months 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'
			}
		}
	});
4.0.0

10 months ago

3.0.0

6 years ago

2.0.0

8 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago