@dashkite/http-headers
v0.12.37
Published
Parser combinator library for JavaScript
Readme
HTTP Headers
Parsers and formatters for HTTP Headers
Install
Currently only available via local development.
Usage
Each header provides a subpath import that exports a parse and format function.
import * as Authorization from "@dashkite/http-headers/authorize"
authorization =
scheme: "rune"
parameters: { rune, nonce }
assert.deepEqual authorization,
Authorize.parse header,
Authorize.format authorizationYou may also import the header namespaces directly:
import { Authorization, WWWAuthenticate } from "@dashkite/http-headers"