DavidTPate / transform-header

Express Middleware to Transform a Header to either a Request Property or another Header
MIT License
0 stars 0 forks source link

transform-header

Greenkeeper badge

NPM version Build Status Code Climate Test Coverage

Express Middleware for Transform a Header to either a Request Property or another Header.

Install

NPM

$ npm install transform-header

Node.js

var express    = require('express');
var requestType = require('transform-header');

var app = express();

app.use(transformHeader.property('X-HTTP-Method-Override', 'method'));
app.use(transformHeader.header('X-Accept', 'Accept'));

License

MIT