http-rs / http-rs/http-types

Suggestion: Add `Any` bound to `Connection` type and allow downcasting

Open
#328 0 comments 0 reactions 0 assignees View on GitHub
semver-major
Dominant language
Rust
Stars
209
Forks
91
PR merge metrics
No merged PRs in 30d

Description

Different users of `http-types` will expect an upgraded `Connection` to be able to do different things (some might want it to be `Clone`, some might want to split it, etc.).

A simple way to add some extensibility would be to allow clients to attempt to downcast the connection back to its concrete type. Satisfying the `Any` bound is trivial, but it is nonetheless a breaking change, so would be good to do for the next major version.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.