* JavaScript

  ```js
  export default {
    async fetch(request) {
      /**
       * Replace `remote` with the host you wish to send requests to
       */
      const remote = "https://example.com";


      return await fetch(remote, request);
    },
  };
  ```

  [Run Worker in Playground](https://workers.cloudflare.com/playground#LYVwNgLglgDghgJwgegGYHsHALQBM4RwDcABAEbogB2+CAngLzbPYZb6HbW5QDGU2AAwBmAJziAjADYAHABZpMgFwsWbYBzhcafASPGjFC2QFgAUAGF0VCAFMb2ACJQAzjHQuo0a0pLq8BMQkVHDAtgwARFA0tgAeAHQAVi4RpKhQYPah4VExCckR5lY29hDYACp0MLa+cDAwYHwEUNbIiXAAbnAuvAiwEADUwOi44Lbm5nHuSCS4tqhw4BAkAN5mJCTddFS8frYQvAAWABQItgCOILYuEACUq+sbJMgAVC+PTy8kAEq2DXC8WwkAAGZ2GdmBJAA7l5DiQIIcgYcPMs6JRoa44RB0CQXPZcCQzpdrhAXPD0B8Ni9kJTeNYboTbOCgQwSBFDhAIDAXEpkMg4qEGrZ4nTgKkzJSzhAQAgqJsoXAvHsDicweg7AAaRnEm63IiPAC+GrMBqI5lUzHUmm0PH4QjEklkxhkRWsdgczjcHi8LSovn8mlIITCkTChE0qT8GSyIYiZDA6DIhUsbtKFSqNU29UavGarWS1gmZhWEWAiqoAH1hqNMhElLk5vkUgbzRarYEbbp7QYjIpmEA)

* TypeScript

  ```ts
  export default {
    async fetch(request: Request): Promise<Response> {
      /**
       * Replace `remote` with the host you wish to send requests to
       */
      const remote = "https://example.com";


      return await fetch(remote, request);
    },
  };
  ```

* Python

  ```py
  from js import fetch


  async def on_fetch(request):
      # Replace `remote` with the host you wish to send requests to
      remote = "https://example.com"
      return await fetch(remote, request)
  ```
