New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

http-header-db

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-header-db

HTTP header field database

beta
latest
Source
npmnpm
Version
1.0.0-beta.1
Version published
Maintainers
1
Created
Source

http-header-db

This is a large database of http header field and information about them.

Data from the following sources:

  • https://www.iana.org/assignments/http-fields/http-fields.xml

Packages

The package supports multiple platforms.

  • deno.land/x - https://deno.land/x/http_header_db@$VERSION
  • npm - http-header-db

Usage

import { default as db } from "https://deno.land/x/http_header_db/db.json" assert { type: "json" };

db["content-type"];

Data Structure

The JSON file is a map lookup for lowercased header field names. Each field has the following properties:

NameDescription
listableWhether the field allows multiple members or not.
This is synonymous with RFC9110, 5.5, list-based fields.

License

Copyright © 2022-present httpland.

Released under the MIT license

This project is strongly inspired by the mime-db

Keywords

http

FAQs

Package last updated on 18 Sep 2022

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