@arcjet/headers
v1.0.0-beta.15
Published
Arcjet extension of the Headers class
Readme
@arcjet/headers
Arcjet extension of the Headers class.
What is this?
This is an internal utility to help us deal with Headers.
This exists to prevent the cookie header from being set and non-string values
from being set.
When should I use this?
You should not use this but use Headers or plain objects instead.
This package matches our current needs which are likely different from yours.
Install
This package is ESM only. Install with npm in Node.js:
npm install @arcjet/headersUse
import { ArcjetHeaders } from "@arcjet/headers";
const headers = new ArcjetHeaders({ abc: "123" });
console.log(headers.get("abc")); // => "123"