Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
Cancellation and Headers
ModernHttpClient now correctly handles cancellation, closing the underlying connection as soon as possible. To do this fully, you must both supply and cancel a
CancellationToken, and should you receive an
HttpResponseMessage, you must
Content of the message.
Both iOS and Android also now correctly support
HttpCompletionOption.ResponseHeadersRead, meaning that HttpClient will return as soon as headers are available, which means you can cancel a request based on the header content (i.e. if you determine that the request is not actually needed, you can
Content and close the underlying socket connection).
Other Bug Fixes
- Build fixes and Xamarin Component support thanks to @pupitetris!
- For reals support Gingerbread and higher on Android