Skip to content

refactor: make Body an associated type on ProxyBackend#38

Merged
alukach merged 1 commit into
refactor/simplify-cf-workersfrom
refactor/body-associated-type
May 21, 2026
Merged

refactor: make Body an associated type on ProxyBackend#38
alukach merged 1 commit into
refactor/simplify-cf-workersfrom
refactor/body-associated-type

Conversation

@alukach
Copy link
Copy Markdown
Member

@alukach alukach commented Apr 16, 2026

Summary

  • Replaces the generic Body parameter on forward() with an associated type Body on ProxyBackend
  • Eliminates runtime downcasts via Box<dyn Any> — body type mismatches are now caught at compile time
  • Updates all three backend implementations: WorkerBackend, ServerBackend, LambdaBackend

Test plan

  • cargo test -p multistore — all tests pass
  • cargo check --target wasm32-unknown-unknown -p multistore-cf-workers passes
  • cargo check -p multistore-server passes
  • cargo check -p multistore-lambda passes

🤖 Generated with Claude Code

Replaces the generic Body parameter on forward() with an associated
type, eliminating runtime downcasts via Box<dyn Any>. Body type
mismatches are now caught at compile time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alukach alukach merged commit ae9b859 into refactor/simplify-cf-workers May 21, 2026
8 of 12 checks passed
@alukach alukach deleted the refactor/body-associated-type branch May 21, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant