Skip to content

Backend + HTTP client traits #487

@aram356

Description

@aram356

Description

Implement PlatformBackend and PlatformHttpClient backed by Fastly SDK. Introduce PlatformResponse with backend_name: Option<String> for upstream correlation. Abstract send/send_async behind traits. Integration send calls deferred to PR 13.

EdgeZero ProxyClient relationship

Before this PR merges, file an EdgeZero issue to generalize ProxyClient into an HttpClient trait supporting both synchronous proxy-style sends and the async fan-out pattern (send_async + select). The trusted-server PlatformHttpClient Fastly impl works independently until the generalized EdgeZero trait lands, at which point the Fastly impl swaps to implementing the EdgeZero trait.

Done when

  • PlatformResponse with backend_name
  • send/send_async abstracted
  • EdgeZero issue filed for ProxyClient → HttpClient generalization
  • Per-PR gates pass

Blocked by

PR 2

References

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