JSPM

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

Retrieve all HTTP(s) headers as an object with original casing

Package Exports

  • get-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 (get-headers) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Get Headers

NPM version NPM downloads Build status Test coverage

Retrieve all HTTP(s) headers as an object with original casing.

Installation

npm install get-headers --save

Usage

Parse

import { parse } from 'get-headers'

parse(xhr.getAllResponseHeaders()) //=> {}

HTTP

import { get } from 'http'
import { http } from 'get-headers'

get('http://example.com', (res) => {
  http(res) //=> {}
})

License

MIT