Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify BaseReader and BaseWriter as BaseStream #255

Merged
merged 2 commits into from
Aug 21, 2019

Conversation

florimondmanca
Copy link
Member

@florimondmanca florimondmanca commented Aug 20, 2019

Based on a suggestion from @tomchristie in #217 (comment), simplifies the stream interface by merging BaseReader and BaseWriter into a unified stream interface.

@tomchristie
Copy link
Member

Great stuff!

I think that our stream interface should also encapsulate the http version info, (eg `get_protocol_info() -> str) so that instead of connect returning a two tuple of (Stream, str), it can just return Stream.

@florimondmanca
Copy link
Member Author

Oh sure, good idea — didn't see that the protocol refactor got in. 👍

@florimondmanca florimondmanca force-pushed the refactor/stream-interface branch from 49369f3 to fdb1359 Compare August 21, 2019 07:12
Copy link
Member

@tomchristie tomchristie left a comment

Choose a reason for hiding this comment

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

Yeah, love it! 🎉

@tomchristie tomchristie merged commit 3069227 into master Aug 21, 2019
@tomchristie tomchristie deleted the refactor/stream-interface branch August 21, 2019 08:38
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