-
Notifications
You must be signed in to change notification settings - Fork 60
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
Max response size (Response.binary) #153
Comments
@passwone I had a quick look now - there is nothing "clean" you can do since JdkRequest uses it's own private Wire which always extracts the body content. Clearly some design changes would need to be done in the library to offer the flexibility you're mentioning. Until that will be done (if this ticket is approved by the architect), I think you could use a fake Wire decorator. It's dirty, I know, but quick way for you to integrate your logic with the library :) |
@amihaiemil thanks for your response. I rewrote a new Wire based on JdkRequest's Wire. But, as you said, it's not quite elegant :) |
@passwone Yes, it would be a fun thing to implement. Most likely using decorators of Request and/or Response, I didn't analyze in such depth. A big issue, however, would be to keep backwards compatibility. Anything can be done, but I don't think we want existing users to start getting red errors and have to rewrite the code when they increment the lib's version in pom.xml :D Anyway, a PM will ping the architect to dispatch this soon and he will decide how we should proceed :) |
@passwone please, just stay on the line, don't deactivate notifications from this issue - if it's approved, you'll have to close it in the end; it's how we work :) |
@amihaiemil Exactly! It's the way to go ;) |
@yegor256 please dispatch this issue |
@yegor256 can I have this? |
Hello, nice library !
I'm looking for a way to reject response when his content size exceed a limit.
Unfortunately, JdkRequest and ApacheRequest already "consume" all the content and place it into an array of bytes. Did you already have this kind of needs ?
The text was updated successfully, but these errors were encountered: