http.request.headers
http.request.headers
Map<Array<String>> The HTTP request headers represented as a Map (or associative array).
The keys of the associative array are the names of HTTP request headers converted to lowercase.
When there are repeating headers, the array includes them in the order they appear in the request.
The request header values are not pre-processed and retain the original case used in the request.
- Decoding: No decoding performed
- Whitespace: Preserved
- Non-ASCII: Preserved
Example value:
{"content-type": ["application/json"]}
Example usage:
any(http.request.headers["content-type"][*] == "application/json")
Categories:
- Request
- Headers
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark