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
Retrieve all HTTP(s) headers as an object with original casing.
Installation
npm install get-headers --saveUsage
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