JSPM

message-headers

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q43499F
  • License MIT

Automatically updated list of RFC HTTP permanent and provisional headers from IANA (<https://www.iana.org/assignments/message-headers/message-headers.xhtml>)

Package Exports

  • message-headers

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (message-headers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

message-headers

build status code style styled with prettier made with lass license

Automatically updated list of RFC HTTP permanent and provisional headers from IANA (https://www.iana.org/assignments/message-headers/message-headers.xhtml)

Are you receiving the client-side error "Refused to set unsafe header"? It's because you're trying to modify a standard header sent by the browsers by default (and that is not safe)!

This package is manually updated (for safety) when the automatic nightly builds fail (the remote IANA CSV files were updated).

Table of Contents

Install

npm:

npm install message-headers

yarn:

yarn add message-headers

Usage

const messageHeaders = require('message-headers');

console.log('all', messageHeaders.all);
console.log('permanent', messageHeaders.permanent);
console.log('provisional', messageHeaders.provisional);
console.log('standard', messageHeaders.standard);
console.log('deprecated', messageHeaders.deprecated);

Contributors

Name Website
Nick Baugh http://niftylettuce.com/

License

MIT © Nick Baugh