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

Chained API for form and multipart data in BodyInserters [SPR-16133] #20681

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

Comments

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

commented Oct 30, 2017

Rossen Stoyanchev opened SPR-16133 and commented

The ability to build the form inline:

BodyInserters.fromFormData("a", "a1").param("b", "b1", "b2")

Or multipart data:

BodyInserters.fromMultipartData("foo", new Foo()).param("b", new HttpEntity(...))

Each call to param returns an inserter that's ready for use, either by creating a new one with the additional parameter, or by modifying the existing one.


Affects: 5.0.1

This issue is a sub-task of #20666

Referenced from: commits a58002a

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Oct 31, 2017

Arjen Poutsma commented

Andy Wilkinson,Rossen Stoyanchev: Is this what you had in mind? poutsma@c04968f

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Oct 31, 2017

Andy Wilkinson commented

It is indeed. Thanks.

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Oct 31, 2017

Rossen Stoyanchev commented

(y)

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

commented Nov 1, 2017

Arjen Poutsma commented

This is now complete. See a58002a

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.