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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
FormData and marshalling, easier/possible to use #18665
Comments
Maybe providing a Marshaller of |
In any case, |
On the other hand, there's also still #15674 which is somewhat of a pain to port because of all the complexity that's inside, so having a simple solution that works for forms with textual data would really be nice. |
Right, that's true as well. |
Ah right, yeah it definitely links to #15674 in some ways. |
At some point I added Having done that, it would be easy to add the helper methods to the Java side HttpMessage even if the model itself is still missing on the Java side. |
It's only a little bit of code that move have to move to |
Ok, so we don't feel it's against the purity of the core or sth like that ;-) Again, huge thanks for all the hints @jrudolph - it's really invaluable. |
Managed to solve it by reusing the hinted at code :) |
Let's say I'm in Java and want to test a route which deals with
FormData
(I actually really do 馃槈), I'd want to say:but can't since HttpRequest (or even
HttpMessage
) is not aware of FormData (i.e. the method withFormData does not exist). We also can't provide it on the type since it's inakka-http-core
and we'd need marshallers, which are inakka-http
(PredefinedToEntityMarshallers
).I don't have a good idea how to solve this simply...? One would have to manually call marshalling and use
withEntity
I guess now...? Open to other ideas (are we need a full DSL for request building for java?)The text was updated successfully, but these errors were encountered: