1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-04 09:33:16 +00:00

HttpService abstraction with CustomAndroidClientHandler to handle xamarin android bug with error response body

This commit is contained in:
Kyle Spearrin
2016-12-24 10:54:18 -05:00
parent 62cef0d141
commit 9682abdded
19 changed files with 871 additions and 31 deletions

View File

@@ -7,6 +7,17 @@ namespace Bit.App
public class ApiHttpClient : HttpClient
{
public ApiHttpClient()
{
Init();
}
public ApiHttpClient(HttpMessageHandler handler)
: base(handler)
{
Init();
}
private void Init()
{
BaseAddress = new Uri("https://api.bitwarden.com");
DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));