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

# Return HTML

> Build an HTML document in the script and include data from the request, such as the path.

This script returns an HTML page and drops the request path into the markup.

```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 html = `<!DOCTYPE html>
    <html>
        <head>
            <title>HTML Edgescript example</title>
        </head>
        <body>
            <h1>Hello</h1>
            <h2>there</h2>
            <div>Lorem ipsum bla bla</div>
            <div>from ${url.pathname}</div>
        </body>
    </html>`;

    return new Response(html, {
      headers: {
        "content-type": "text/html",
      },
    });
  },
);
```
