[fuel-jackson] Add Request.body(any: Any) extension method
See original GitHub issueI’d like to be able to make requests like this:
val (request, response, result) = Fuel.post(url)
.body(MyCustomRequestBodyObject(...)) // here
.responseObject<MyCustomResponseBodyObject>()
Currently I have an extension method in my project which allows this:
fun Request.body(any: Any) = body(mapper...)
Would be nice if this was a part of the fuel-jackson
module.
Issue Analytics
- State:
- Created 4 years ago
- Comments:18 (1 by maintainers)
Top Results From Across the Web
Fuel HTTP Library with Kotlin - Baeldung
To make a request, Fuel provides a String extension. In addition and as an alternative, ... Fuel supports all HTTP verbs except for...
Read more >How to POST raw whole JSON in the body of a Retrofit request?
I really hope not, as the services I am connecting to are just expecting raw JSON in the body of the post. They...
Read more >Set up the request — Behat API Extension 3.0.0 documentation
This step sets the HTTP method to POST by default and the Content-Type request header to multipart/form-data . This step can not be...
Read more >Use HttpRequestMessage Extension Methods - OData
Green circular checkmark icon to indicate a success. OData AspNet WebApi V6. In Microsoft.AspNet.OData, set of HttpRequestMessage extension ...
Read more >Add a Request Body to a POST Request | API Connector
API Connector defaults to the GET method, which doesn't contain a request body. ... The body contents can be any valid JSON object,...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I can take a look at this if people are busy 🙋
No, @kittinunf and I both run IntelliJ (NO Android Studio).