Skip to content

Conversation

@keelerm84
Copy link
Member

No description provided.

keelerm84 and others added 7 commits January 7, 2026 12:27
Update from hyper 0.14 to hyper 1.0 ecosystem, matching the
eventsource-client dependency. This includes:

- Upgrade http crate from 0.2 to 1.0
- Use hyper-util for legacy Client API
- Use http-body-util for body types
- Update hyper-rustls from 0.24 to 0.27
- Update all trait bounds and type annotations
- Add tower as direct dependency for Service trait

BREAKING CHANGE: hyper-related trait bounds have changed for
custom connector implementations. The Future associated type now
requires Unpin bound, and trait bounds have been updated to use
tower::Service and hyper_util::client::legacy::connect types.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Introduce a generic HttpTransport trait to decouple the SDK from
specific HTTP client implementations. This follows the pattern
established in eventsource-client.

- Add transport.rs with HttpTransport trait and error types
- Add transport_hyper.rs with hyper 1.0 implementation
- Make hyper an optional dependency via feature flags
- Use Bytes for request bodies (supports binary and empty)
- Stream response bodies via ByteStream type alias

This commit adds the abstraction without changing existing code.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@keelerm84 keelerm84 requested a review from a team as a code owner January 13, 2026 14:36
@keelerm84 keelerm84 changed the title feat!: Migrate events and polling systems to HttpTransport feat!: Migrate events to HttpTransport Jan 13, 2026
@keelerm84 keelerm84 force-pushed the mk/sdk-1742/2-create-transport-abstraction branch from baaefd8 to 841d94d Compare January 20, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants