gorillalabs / hato

An HTTP client for Clojure, wrapping JDK 11's HttpClient
MIT License
1 stars 0 forks source link

Support large bodies (esp. JSON) #1

Open chrisbetz opened 4 years ago

chrisbetz commented 4 years ago

Support bodies larger than Integer.MAX_VALUE size.

chrisbetz commented 4 years ago

The current implementation uses Strings at some places to move the body around. As https://stackoverflow.com/questions/1179983/how-many-characters-can-a-java-string-have outlines, there's a hard limit (besides available memory) for String length.

Thus, we need to eliminate all instantiations and work as lazy as possible.