Prompt Buddy logoPrompt Buddy

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.

Import to Prompt Buddy

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

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-examples-fetch-html-workflow-guide.mdA 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.textA 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.textA 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.textA 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.textA 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

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. 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