🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

@arcjet/headers

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcjet/headers

Arcjet extension of the Headers class

latest
Source
npmnpm
Version
1.5.0
Version published
Weekly downloads
57K
-1.18%
Maintainers
2
Weekly downloads
 
Created
Source
Arcjet Logo

@arcjet/headers

npm badge

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/headers

Use

import { ArcjetHeaders } from "@arcjet/headers";

const headers = new ArcjetHeaders({ abc: "123" });

console.log(headers.get("abc")); // => "123"

API

This package exports the identifier ArcjetHeaders. The default export is ArcjetHeaders.

This package exports no TypeScript types.

new ArcjetHeaders([init])

Creates a new ArcjetHeaders instance. We use this internally to prevent the cookie header from being set and to ensure only string values are used.

Parameters
  • init (Headers | Array<[string, string]> | Record<string, Array<string> | string | undefined>, optional) — initial headers to set
Returns

An ArcjetHeaders instance that extends the standard Headers class.

License

Apache License, Version 2.0 © Arcjet Labs, Inc.

Keywords

arcjet

FAQs

Package last updated on 09 Jun 2026

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