# @apimatic/http-headers

> This package provides utilities for managing HTTP headers with case-insensitive handling and validation.

Latest version **0.3.8** (published 2025-09-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @apimatic/http-headers
pnpm add @apimatic/http-headers
yarn add @apimatic/http-headers
bun add @apimatic/http-headers
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.3.8 |
| Published | 2025-09-30 |
| First published | 2023-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.15.0 \|\| >=16.0.0 |
| Dependencies | 1 |
| Unpacked size | 22.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | APIMatic Ltd. |
| Maintainers | apimaticdev, mehdi991, maryamadnan3, hamzamahmood, aliasghar1070, talhafaheem |

## Links

- npm: https://www.npmjs.com/package/@apimatic/http-headers
- Repository: https://github.com/apimatic/apimatic-js-runtime
- Homepage: https://github.com/apimatic/apimatic-js-runtime#readme
- Issues: https://github.com/apimatic/apimatic-js-runtime/issues
- npm.io page: https://npm.io/package/@apimatic/http-headers

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) 2.8.1

## Recent versions

- 0.3.8 (latest) — 2025-09-30
- 0.3.8-alpha.1 — 2025-09-29
- 0.3.8-alpha.0 — 2025-09-29
- 0.3.7 — 2025-08-13
- 0.3.6 — 2025-07-11
- 0.3.5 — 2025-05-15
- 0.3.4 — 2024-12-12
- 0.3.3 — 2024-09-27
- 0.3.2 — 2024-05-28
- 0.3.1 — 2023-06-08
- 0.3.0 — 2023-05-18
- 0.2.0 — 2023-04-04
- 0.1.0 — 2023-01-31

## README

# APIMatic HTTP Headers Library for JavaScript SDKs

This package provides utilities for managing HTTP headers with case-insensitive handling and validation.

The exported functionality includes:

* **Case-Insensitive Header Management**: Set, replace, and retrieve headers without case sensitivity.
* **Conditional Header Addition**: Adds headers only if they are not already set.
* **Header Name Lookup**: Identifies the actual header name in a map regardless of casing differences.
* **Headers Merging**: Merges multiple header maps, preserving original casing while updating values as needed.
* **Headers Validation**: Validates header names to ensure compliance with HTTP standards.

This library is used by JavaScript SDKs generated by the [APIMatic Code Generator](http://www.apimatic.io). For details on supported platforms and build artifacts, see the [Build and Usage Section](https://github.com/apimatic/apimatic-js-runtime?tab=readme-ov-file#builds-and-usage).

---
_Source: https://npm.io/package/@apimatic/http-headers · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
