---
id: "http_header_name"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["internet"]
langs: ["common"]
quality: 80
url: "https://registry.apicrafter.io/datatype/http_header_name"
---

# HTTP header field name (`http_header_name`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Name of a field in the header of an HTTP request or response, such as Host or Content-Type. RFC 9110 defines it as a token of letters, digits and the characters !

- Personal data (PII): no
- Categories: Internet (internet)
- Countries: global
- Languages: Common to most languages (common)
- Classification: categorical

## Detection

Regular expression (Python `re`):

```
^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
```

## Examples

- `Host` — Target host of the request
- `Content-Type` — Media type of the content
- `user-agent` — Lowercase form
- `Content-Type: text/html` (invalid example) — A whole header line with the value

## Translations

- ru: Имя заголовка HTTP

## Sources

- doc: <https://www.rfc-editor.org/rfc/rfc9110>

## Quality

Score 80/100. Missing: mapping (Wikidata, Schema.org, ...), detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/http_header_name.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/internet/http_header_name.yaml>
