Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
get-headers
Advanced tools
Retrieve all HTTP(s) headers as an object with original casing.
npm install get-headers --save
Parse a headers string. Useful for XMLHttpRequest
instances.
import { parse } from 'get-headers'
parse(xhr.getAllResponseHeaders()) //=> {}
Parse headers from http
responses. Works properly with node >= 0.12 (when the rawHeaders
property was released) and falls back to normal headers on lower versions.
import { get } from 'http'
import { http } from 'get-headers'
get('http://example.com', (res) => {
http(res) //=> { 'Accept-Ranges': 'bytes', 'Cache-Control': 'max-age=604800', 'Content-Type': 'text/html', Date: 'Mon, 17 Aug 2015 19:53:03 GMT', Etag: '"359670651"', Expires: 'Mon, 24 Aug 2015 19:53:03 GMT', 'Last-Modified': 'Fri, 09 Aug 2013 23:54:35 GMT', Server: 'ECS (rhv/818F)', 'X-Cache': 'HIT', 'x-ec-custom-error': '1', 'Content-Length': '1270', Connection: 'close' }
})
Parse an array of headers (E.g. rawHeaders
). Every odd must be the header name and evens the header value.
import { array } from 'get-headers'
array(['Content-Type', 'application/json']) //=> { 'Content-Type': 'application/json' }
MIT
FAQs
Retrieve all HTTP(s) headers as an object with original casing
The npm package get-headers receives a total of 28 weekly downloads. As such, get-headers popularity was classified as not popular.
We found that get-headers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.