ReadyTalk / avian

[INACTIVE] Avian is a lightweight virtual machine and class library designed to provide a useful subset of Java's features, suitable for building self-contained applications.
https://readytalk.github.io/avian/
Other
1.22k stars 172 forks source link

Added functionality to HttpURLConnection for obtaining content length #525

Closed MaartenR closed 7 years ago

MaartenR commented 7 years ago

In order to be able to keep track of the progress of a file download we needed a way to obtain the size of this file beforehand. Hence this pull request. A map with http headers was already being created, but there was no public api available for retrieving the values. Therefore i added the methods we needed.

MaartenR commented 7 years ago

Sorry, took a while, but http headers should now be case insensitive.

dicej commented 7 years ago

Thanks, Maarten!