Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@readme/http-headers

Package Overview
Dependencies
Maintainers
10
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@readme/http-headers

Retrieve HTTP Header Descriptions from MDN

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
322
increased by25.29%
Maintainers
10
Weekly downloads
 
Created
Source

@readme/http-headers

Utility to find descriptions for HTTP headers.

Build

Installation

npm install --save @readme/http-headers

Usage

HTTP-Headers pulls header descriptions directly from MDN, via a fetch request. It then stores response markdown in memory for future usage. That means that the library is inherently asynchronous, and will need to be used with a promise handler.

import getHeaderDescription from '@readme/http-headers';

console.log(await getHeaderDescription('Connection'));
/**
{
    Connection:  'Controls whether the network connection stays open after the current transaction finishes.',
}
**/

console.log(await getHeaderDescription(['Authorization', 'Content-Length']));
/**
{
    Authorization:  'Contains the credentials to authenticate a user-agent with a server.',
    'Content-Length': 'The size of the resource, in decimal number of bytes.',
}
**/

Keywords

FAQs

Package last updated on 16 Aug 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc