---
title: Return information about the incoming request · Cloudflare Rules docs
description: Respond with information about the incoming request provided by Cloudflare’s global network.
lastUpdated: 2024-08-21T16:27:56.000Z
source_url:
  html: https://a7ef1bf3.preview.developers.cloudflare.com/rules/snippets/examples/return-incoming-request-properties/index.md
  md: https://a7ef1bf3.preview.developers.cloudflare.com/rules/snippets/examples/return-incoming-request-properties/
---

```js
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",
      },
    });
  },
};
```
