Skip to content

Conversation

LucioFranco
Copy link
Member

@LucioFranco LucioFranco commented Aug 27, 2019

Still WIP, need to get crates out for MakeService and MakeConnection.

This mainly introduces the most minimal change to support tower based clients.

cc @seanmonstar

type Request = Request<B>;
type Response = Response;
type Error = ::Error;
impl<B> Service<Request<B>> for SendRequest<B>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am thinking we should rename this to Connection<B> and Background<T, B> for the old Connection.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm undecided. Is there an issue with the current naming?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that Service1<Service2<Connection<Request>>> seems much better than Service1<Service2<SendRequest<Request>>> thats really it.

@LucioFranco LucioFranco marked this pull request as ready for review August 30, 2019 14:54
@LucioFranco
Copy link
Member Author

@seanmonstar Ok, I think this is ready all deps brought in are published as well. I think this supports the most minimal api I need.

@DoumanAsh
Copy link
Contributor

@LucioFranco does it build with cargo build --no-default-features?

@LucioFranco
Copy link
Member Author

@DoumanAsh yes

@seanmonstar seanmonstar merged commit eee2a72 into hyperium:master Aug 30, 2019
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.

4 participants