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

Add BodyWritable / BodyReadable for form data #141

Closed
wsargent opened this issue Jun 16, 2017 · 0 comments · Fixed by #142
Closed

Add BodyWritable / BodyReadable for form data #141

wsargent opened this issue Jun 16, 2017 · 0 comments · Fixed by #142

Comments

@wsargent
Copy link
Member

The Java API does not have a body writable for java.util.Map[String, Array[String]] -- so you can't write the theoretically clear:

Map<String, List<String>> formData = parseFormData("key1=value1&key2=value2");
CompletionStage<WSResponse> responseStage = ws.url().post(formData);

Likewise, you'd like to be able to read data back out:

Map<String, List<String>> formData = response.body(formData());
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

Successfully merging a pull request may close this issue.

1 participant