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

WebClient - add option to disable chunked transfer [SPR-15914] #20468

Closed
spring-issuemaster opened this issue Aug 30, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@spring-issuemaster
Copy link
Collaborator

commented Aug 30, 2017

Marek Hawrylczak opened SPR-15914 and commented

Currently all requests except GET and HEAD are using transfer-encoding: chunked. There is no way to disable it, thus is not possible to call a network device that cannot support chunked transfer.


Affects: 5.0 RC3

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Sep 5, 2017

Arjen Poutsma commented

The chunked transfer-encoding headers is coming from Reactor Netty, the underlying HTTP library. There is an open issue to add a global option for disabling it. Once there, the configuration option can easily be used via this ReactorClientHttpConnector constructor.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 14, 2018

Alex commented

It seems like Reactor Netty has added the feature, but I don't still find the option in ReactorClientHttpConnector constructor now. Is there any plan to support it or am I missing something?

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 14, 2018

Arjen Poutsma commented

Alex It has been added in the 0.8.x branch, while Spring Framework is on 0.7. We will upgrade to 0.8.x as part of the 5.1 cycle.

In the mean time, I've asked for that feature to be back ported to 0.7, see my comment on the linked issue.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 6, 2018

Simon commented

It would be really nice to be able to use WebClient for communicating with resources that dont support chunked  encoding and to avoid adding additional 3rd party dependencies for just doing that. 

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Aug 6, 2018

Simon commented

It would also be nice to be able to configure it using the WebClient.Builder without the need to use the reactor.netty.http.client.HttpClient

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.