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

Remove ContentSource in favor of Observable for HttpClientRequest #169

Closed
NiteshKant opened this issue Jul 3, 2014 · 0 comments
Closed
Milestone

Comments

@NiteshKant
Copy link
Member

HttpClientRequest does not use Observable source for its content. The intent of this was to retain the ability to put back pressure when the need arises.
Since, an Observable source did not initially provide a way to put back pressure, this approach was chosen initially.
RxJava is going to provide back pressure support with the regular Observable as discussed in this issue. This is a more flexible solution (specifically when the source is actually an Observable, eg: for proxies) than the current ContentSource abstraction.
Since, the back pressure support in RxJava can be used with regular Observables it is safe now to replace ContentSource with Observable and later adopt back pressure in rxnetty.

@NiteshKant NiteshKant added this to the 0.3.8 milestone Jul 3, 2014
@NiteshKant NiteshKant self-assigned this Jul 3, 2014
NiteshKant pushed a commit to NiteshKant/RxNetty that referenced this issue Jul 4, 2014
- Modified HttpClientRequest to take an Observable for content instead of the earlier ContentSource.
- Retained the capability to use an Observable<S> where S != type of the HttpClientRequest. This mode requires passing a function that converts S to ByteBuf.
- Removed the RepeatableRequest functionality as it is not required. Re-subscribing to the content observable should replay the source.
NiteshKant added a commit that referenced this issue Jul 4, 2014
@NiteshKant NiteshKant removed their assignment Aug 19, 2014
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

No branches or pull requests

1 participant