Skip to content

Commit f7ece33

Browse files
authored
Add hostMetadata to Request docs (#19292)
`hostMetadata` is a property of the `cf` object, but only present when using custom hostname metadata, as part of Cloudflare for Platforms / SSL for SaaS. This PR adds it to documentation about the `cf` property.
1 parent c4fe586 commit f7ece33

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/workers/runtime-apis/request.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ All plans have access to:
247247

248248
* HTTP Protocol, for example, `"HTTP/2"`.
249249

250+
* `hostMetadata` Object | undefined
251+
252+
* Only populated when the incoming request is from a zone with custom hostname metadata. Refer to the Cloudflare for Platforms documentation for more about what you can add as [custom hostname metadata](/cloudflare-for-platforms/cloudflare-for-saas/domain-support/custom-metadata/), and how it is exposed on the `hostMetadata` field.
253+
250254
* `requestPriority` string | null
251255

252256
* The browser-requested prioritization information in the request object, for example, `"weight=192;exclusive=0;group=3;group-weight=127"`.

0 commit comments

Comments
 (0)