Skip to content

Cloudflare backend factory #84

Open
Open

Description

@aram356

Description

Cloudflare already sends runtime-selected URLs through Fetch, but its backend configuration remains incomplete. Cloudflare Fetch request construction creates RequestInit with method, headers and body only; it exposes no caller backend policy for the TLS and timeout controls requested by #79.

Steps to reproduce

  1. Inspect CloudflareProxyClient::send and build_cf_request.
  2. Identify which options are copied into RequestInit.
  3. Look for a shared backend-settings path and explicit reporting of unsupported controls.

Expected behavior

The Cloudflare backend implementation consumes the portable backend settings and maps supported request controls to Fetch, with runtime restrictions explicit.

Impact

A working Fetch proxy does not let applications express or assess backend configuration consistently across adapters.

Proposed fix

Extend the existing Fetch integration using the shared configuration chosen in #80–#82. Validate the supported option mapping and reject or clearly report unsupported TLS/timeout behavior. Reconcile with PR #275 instead of duplicating its outbound transport.

Done when

  • Runtime-origin Fetch continues to work with existing method/header/body behavior.
  • Supported backend settings are applied through Fetch request options.
  • Unsupported controls and their error/capability behavior are documented and covered by adapter contracts.

Related

Parent #79; shared options #80–#82; contracts #87. PR #275 is related open implementation work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions