Skip to content

refactor: make Body an associated type on ProxyBackend#38

Open
alukach wants to merge 1 commit into
refactor/simplify-cf-workersfrom
refactor/body-associated-type
Open

refactor: make Body an associated type on ProxyBackend#38
alukach wants to merge 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>
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