bitwarden-android/src/App/Utilities/IdentityHttpClient.cs

30 lines
862 B
C#
Raw Normal View History

2017-05-07 03:20:57 +03:00
using System.Net.Http;
using System;
using System.Net.Http.Headers;
namespace Bit.App
{
public class IdentityHttpClient : HttpClient
{
public IdentityHttpClient()
{
Init();
}
public IdentityHttpClient(HttpMessageHandler handler)
: base(handler)
{
Init();
}
private void Init()
{
//BaseAddress = new Uri("http://169.254.80.80:33656"); // Desktop from VS Android Emulator
2017-07-13 17:51:45 +03:00
//BaseAddress = new Uri("http://192.168.1.3:33656"); // Desktop
2017-05-07 03:20:57 +03:00
//BaseAddress = new Uri("https://identity-api.bitwarden.com"); // Preview
2017-07-13 17:51:45 +03:00
BaseAddress = new Uri("https://identity.bitwarden.com"); // Production
2017-05-07 03:20:57 +03:00
DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
}
}
}