Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers HTTP

How to use Service Bindings to facilitate Worker-to-Worker communication by forwarding Request objects using the fetch method on a binding object.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers HTTP

How to use Service Bindings to facilitate Worker-to-Worker communication by forwarding Request objects using the fetch method on a binding object.

When To Use

Use when you need to implement direct Worker-to-Worker communication by forwarding incoming Request objects to a bound service via the fetch() method.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-bindings-http-workflow-guide.mdA markdown document explaining how to use service bindings to forward a Request object to another Worker using the fetch method.Questions about a markdown document explaining how to use service bindings to forward a Request object to another Worker using the fe...
examples/workers-runtime-apis-bindings-http-cloudflare-workers-service-bindings-h.textA configuration file demonstrating the setup for Cloudflare Workers service bindings using the HTTP protocol.Exact payloads, commands, or snippets shown in A configuration file demonstrating the setup for Cloudflare Workers service bindings using the HTTP protocol.
examples/workers-runtime-apis-bindings-http-cloudflare-workers-http-service-bindi.textA wrangler configuration file demonstrating the setup for service bindings to facilitate HTTP communication between Workers.Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating the setup for service bindings to facilitate HTTP communication between W...
examples/workers-runtime-apis-bindings-http-cloudflare-workers-http-fetch-handler.textA JavaScript code example demonstrating a basic fetch handler within a Cloudflare Worker that returns a plain text response.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating a basic fetch handler within a Cloudflare Worker that returns a plain text re...
examples/workers-runtime-apis-bindings-http-cloudflare-workers-service-bindings-h-2.textA wrangler configuration file demonstrating how to define service bindings for HTTP communication between Workers.Exact payloads, commands, or snippets shown in A wrangler configuration file demonstrating how to define service bindings for HTTP communication between Workers.
examples/workers-runtime-apis-bindings-http-cloudflare-workers-http-service-bindi-2.textA TOML configuration file defining a service binding named WORKERB to connect workerA to workerb.Exact payloads, commands, or snippets shown in A TOML configuration file defining a service binding named WORKERB to connect workerA to workerb.
examples/workers-runtime-apis-bindings-http-cloudflare-workers-http-service-bindi-3.textA JavaScript code example demonstrating how to use a service binding to fetch a request from another worker using the env object.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use a service binding to fetch a request from another worker using the...
examples/workers-runtime-apis-bindings-http-cloudflare-workers-http-service-bindi-4.textA JavaScript code example demonstrating how to use a service binding to perform an HTTP fetch request within a Cloudflare Worker.Exact payloads, commands, or snippets shown in A JavaScript code example demonstrating how to use a service binding to perform an HTTP fetch request within a Cloudf...

What This Skill Covers

  • Worker A that declares a Service binding to Worker B can forward a Request object to Worker B, by calling the fetch() method that is exposed on the binding o...

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/runtime-apis/bindings/service-bindings/http