Return information about the incoming request
Respond with information about the incoming request provided by Cloudflare’s global network.
export default {  async fetch(request) {    // For any request, respond with JSON object containing all incoming request properties provided by Cloudflare network    return Response.json(request.cf, {      // Add new header to identify request was served by Snippets      headers: {        "x-snippets-hello": "Hello from Cloudflare Snippets",      },    });  },};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