question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[fuel-jackson] Add Request.body(any: Any) extension method

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
panpaninicommented, Aug 9, 2019

I can take a look at this if people are busy 🙋

1reaction
SleeplessBytecommented, Jul 21, 2019

No, @kittinunf and I both run IntelliJ (NO Android Studio).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found