Available fields and functions
Last updated Oct 9, 2026 The available fields when setting an HTTP request header value using an expression are the following:
cf.bot_management.*cf.client.botcf.verified_bot_categorycf.edge.server_ipcf.edge.server_portcf.edge.client_portcf.edge.client_tcpcf.edge.l4.delivery_ratecf.hostname.metadatacf.llm.prompt.custom_topic_categoriescf.llm.prompt.detectedcf.llm.prompt.injection_scorecf.llm.prompt.pii_categoriescf.llm.prompt.pii_detectedcf.llm.prompt.token_countcf.llm.prompt.unsafe_topic_categoriescf.llm.prompt.unsafe_topic_detectedcf.zone.namecf.random_seedcf.ray_idcf.timings.client_quic_rtt_mseccf.timings.client_tcp_rtt_mseccf.tls_versioncf.tls_ciphercf.tls_client_hello_lengthcf.tls_client_randomcf.tls_client_extensions_sha1cf.tls_client_extensions_sha1_lecf.tls_client_ciphers_sha1cf.tls_client_auth.*cf.worker.upstream_zonecf.fraud.email_riskhttp.cookiehttp.hosthttp.refererhttp.request.accepted_languageshttp.request.cookieshttp.request.headershttp.request.headers.*http.request.methodhttp.request.body.formhttp.request.body.form.*http.request.body.multiparthttp.request.body.multipart.*http.request.body.rawhttp.request.body.sizehttp.request.body.truncatedhttp.request.timestamp.sechttp.request.timestamp.msechttp.request.full_urihttp.request.urihttp.request.uri.*http.request.versionraw.http.request.full_uriraw.http.request.uriraw.http.request.uri.*raw.http.request.headersraw.http.request.headers.*http.user_agenthttp.x_forwarded_forip.srcip.src.latip.src.lonip.src.asnumip.src.cityip.src.countryip.src.continentip.src.metro_codeip.src.postal_codeip.src.regionip.src.region_codeip.src.is_in_european_unionip.src.subdivision_1_iso_codeip.src.subdivision_2_iso_codesslhttp.request.jwt.claimshttp.request.jwt.claims.*cf.fraud_detection.disposable_emailcf.sequence.current_opcf.sequence.msec_since_opcf.sequence.previous_opscf.waf.auth_detectedcf.waf.credential_check.*cf.waf.scorecf.waf.score.*cf.appsec.request.failed_detections
Refer to Fields for reference information on these fields.
Important
- To obtain the value of an HTTP header using the
http.request.headersfield, specify the header name in lowercase. For example, to get the first value of theAccept-Encodingrequest header in an expression, use:http.request.headers["accept-encoding"][0]. - Use the
to_string()function to get the string representation of a non-string value like an Integer value. For example,to_string(cf.bot_management.score).
For information on the available functions, refer to Functions.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/rules/transform/request-header-modification/reference/fields-functions/#page","headline":"Available fields and functions","description":"Available fields and functions for request header modification rules.","url":"https://developers.cloudflare.com/rules/transform/request-header-modification/reference/fields-functions/","inLanguage":"en","image":"https://developers.cloudflare.com/rules/transform/request-header-modification/reference/fields-functions/og.png?v=7fefbbb932af71a1","dateModified":"2026-10-09","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Supported header name and value formats for request header modifications. title: Format of HTTP request header names and values image: https://developers.cloudflare.com/rules/transform/request-header-modification/reference/header-format/og.png?v=483f9a8a3c2ef47e
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/rules/llms.txt
Use this file to discover all available pages before exploring further.
Docs