> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-support-migration.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch url

> If you need to proxy the request to another URL, you can use the fetch method. This example shows how to append the original request path to a new domain and fetch content from there. See example below:

```ts theme={null}
import * as BunnySDK from "@bunny.net/edgescript-sdk";

BunnySDK.net.http.serve(
  async (request: Request): Response | Promise<Response> => {
    const url = new URL(request.url);

    const fetchUrl = "https://example.com";

    return fetch(fetchUrl + url.pathname);
  },
);
```
