Kong / unirest-java

Unirest in Java: Simplified, lightweight HTTP client library.
http://kong.github.io/unirest-java/
MIT License
2.6k stars 592 forks source link

ObjectMappers should be able to take InputStreams to handle large responses #351

Open ryber opened 4 years ago

ryber commented 4 years ago

Is your feature request related to a problem? Please describe. Large responses must be fully read into memory in order to get passed to an ObjectMapper as a string. allow support for Mappers to take a InputStream.

Describe the solution you'd like an overload of methods to take/return inputstreams. This should be optional and not a breaking change