mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 15:45:42 +03:00
18 lines
439 B
C#
18 lines
439 B
C#
|
using System.Net.Http;
|
|||
|
using ModernHttpClient;
|
|||
|
using System;
|
|||
|
using System.Net.Http.Headers;
|
|||
|
|
|||
|
namespace Bit.App
|
|||
|
{
|
|||
|
public class ApiHttpClient : HttpClient
|
|||
|
{
|
|||
|
public ApiHttpClient()
|
|||
|
: base(new NativeMessageHandler())
|
|||
|
{
|
|||
|
BaseAddress = new Uri("https://api.bitwarden.com");
|
|||
|
DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|