Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding host_metadata to Cloudflare Request Data #348

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

mettke
Copy link
Contributor

@mettke mettke commented Jun 30, 2023

Fixes: #347

This adds two new functions. One for IncomingRequestCfProperties to access the hostMetadata as documented here: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/domain-support/custom-metadata/ and another for Cf to allow the user to supply a custom Rust Struct for the field to be serialized to.

This was tested using Cloudflare Custom Domains with Custom Metadata attached.

@kflansburg kflansburg merged commit b5de9b5 into cloudflare:main Oct 11, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Access to hostMetadata for custom hostnames using the CF Struct
2 participants