Skip to content

abtris/check_header

Repository files navigation

npm version Build Status

Check Header

Code is inherit from NodeJS internal functions introduced in v0.10.42, v0.12.10, v4.3.1 and v5.6.0.

Install

npm install --save check_header

Example

var checker = require('check_header');
var headersObject = {'Content-Type':'žluťoučký kůň'};
if (!checker.isValid(headersObject)) {
  console.log("Invalid header there!");
}

About

Check invalid chars in HTTP Headers for NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •