Skip to content

Axum backend factory #85

Open
Open

Description

@aram356

Description

Axum already proxies arbitrary URLs using reqwest::Client. The remaining backend-factory gap is caller configuration: Axum proxy construction exposes only try_new() with a fixed 30s timeout, and send discards request extensions instead of consuming a backend-settings contract.

Steps to reproduce

  1. Inspect AxumProxyClient::try_new and send.
  2. Look for an API accepting a caller-selected timeout/backend policy.
  3. Confirm the only client-builder timeout is the fixed 30-second value.

Expected behavior

The native backend implementation builds or selects a reqwest client using the portable backend timeout configuration.

Impact

Native applications cannot tune origin connection behavior without replacing or editing the adapter client.

Proposed fix

Complete configurable reqwest construction using the chosen portable settings. Reuse existing request conversion, preserve fallible client initialization, and coordinate with PR #275 so client ownership and outbound policy have one implementation.

Done when

  • A supported caller timeout setting changes reqwest client/request behavior.
  • Defaults and unsupported phase distinctions are documented.
  • Local deterministic or loopback tests cover custom/default timeouts and failed construction.

Related

Parent #79; timeout contract #82; contracts #87. PR #275 is related open 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