-
Notifications
You must be signed in to change notification settings - Fork 533
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Mono.Android] Read error response in AndroidClientHandler (#180)
Improve error response handling, using [`ErrorStream`][0] if an error occurs. > **Response Handling** > `HttpURLConnection` will follow up to five HTTP redirects. > It will > follow redirects from one origin server to another. > This implementation doesn't follow redirects from HTTPS to HTTP or > vice versa. > If the HTTP response indicates that an error occurred, > `InputStream` will throw an `IOException`. > Use `ErrorStream` to read the error response. [0]: https://developer.android.com/reference/java/net/HttpURLConnection.html#getErrorStream()
- Loading branch information
Showing
1 changed file
with
39 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters