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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mettke
Copy link

@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.

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
1 participant