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

Create builder for multipart bodies [SPR-16134] #20682

Closed
spring-issuemaster opened this issue Oct 30, 2017 · 2 comments

Comments

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

commented Oct 30, 2017

Rossen Stoyanchev opened SPR-16134 and commented

It would be useful to support more explicitly the case of creating an HttpEntity in order to provide a part with headers in multipart request, e.g. a PartHttpEntity sub-class. Such a class could provide a builder similar to those in RequestEntity but by comparison the use case here can make the assumptions and for example a body can always be expected along with a content type.

This was first raised in #20666 (WebTestClient) but would also help for WebClient and RestTemplate scenarios.


Affects: 5.0.1

This issue is a sub-task of #20666

Referenced from: commits 2d1f875

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Nov 3, 2017

Arjen Poutsma commented

Is this what you had in mind, Rossen Stoyanchev? poutsma@44964ef

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Nov 6, 2017

Arjen Poutsma commented

See 2d1f875

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.