1.0.0-beta.1 • Published 2 years ago

http-header-db v1.0.0-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

http-header-db

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

Data from the following sources:

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