Skip to content

Express/Connect middleware to set response headers based on globs

License

Notifications You must be signed in to change notification settings

divshot/set-headers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

set-headers

Express/Connect middleware to set response headers based on globs

Install

npm install set-headers --save

Usage

var express = require('express');
var setHeaders = require('set-headers');

var app = express();

app.use(setHeaders({
  '/some/path/**/*.json': {
    'Content-Type': 'application/json'
  }
}));

app.listen(3000, function () {
  
});

Run Tests

npm install
npm test

About

Express/Connect middleware to set response headers based on globs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published