cloudflare · Cloudflare Workers Docs
Workers Fetch HTML
Demonstrates how to send a request to a remote server, extract the HTML response, and serve it using a Cloudflare Worker.
Derived skill
Files assembled from official documentation
Viewing SKILL.md
Workers Fetch HTML
Demonstrates how to send a request to a remote server, extract the HTML response, and serve it using a Cloudflare Worker.
When To Use
Use when you need to implement a proxy or a worker that fetches and serves remote HTML content to a client.
Reference Files
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-examples-fetch-html-workflow-guide.md | A markdown guide demonstrating how to use Cloudflare Workers to request a remote server, parse its HTML, and serve the response. | Questions about a markdown guide demonstrating how to use Cloudflare Workers to request a remote server, parse its HTML, and serve th... |
examples/workers-examples-fetch-html-cloudflare-workers-fetch-html.text | A JavaScript code example demonstrating how to use the Fetch API within a Cloudflare Worker to retrieve HTML from a remote host. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the Fetch API within a Cloudflare Worker to retrieve HTML from a r... |
examples/workers-examples-fetch-html-cloudflare-workers-fetch-html-javascript.text | A JavaScript code example demonstrating how to use the Fetch API within a Cloudflare Worker to retrieve HTML from a remote host. | Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use the Fetch API within a Cloudflare Worker to retrieve HTML from a r... |
examples/workers-examples-fetch-html-cloudflare-workers-python-fetch-html.text | A Python implementation of a Cloudflare Worker that uses the fetch API to retrieve HTML from a remote host. | Exact payloads, commands, or snippets shown in A Python implementation of a Cloudflare Worker that uses the fetch API to retrieve HTML from a remote host. |
examples/workers-examples-fetch-html-cloudflare-workers-hono-fetch-html.text | A Hono application implementation for Cloudflare Workers that proxies and fetches HTML from a remote host. | Exact payloads, commands, or snippets shown in A Hono application implementation for Cloudflare Workers that proxies and fetches HTML from a remote host. |
What This Skill Covers
- Send a request to a remote server, read HTML from the response, and serve that HTML.
- Main sections:
Tags.
Workflow
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://developers.cloudflare.com/workers/examples/fetch-html
