adds asJsonString. Experimentally adds asStream and asBytes#56
adds asJsonString. Experimentally adds asStream and asBytes#56
Conversation
|
There is only a crude test for asJsonString() at this point. The other two new methods are experimental and would need some tests to make it into a release. |
|
It will work, but it might be awkward. What is a If you wish to try this out first hand, try accessing the |
|
I see what you are saying. I have held it as principle so far to not expose the http classes in the public api and I like the idea of ResourceRepresentation as the single class representing response content. But this is of course all subjective.
Having get() only accept json is clearly not right. I'll take a look at that.
|
FWIW, another option you have is to create a different class that just wraps raw file responses. It would expose an Thanks for the library, btw. |
This is a proposal to address #47.
It also adds an asStream() and asBytes() method to potentially address #55.
Looking forward to comments. Does this work for you @holtonma and @aduston?