Skip to content

Native Http handlers = better performance

abubakrtaha edited this page Jul 16, 2021 · 4 revisions

iOS and Android

HttpClient httpClient = new HttpClient();
httpClient.DefaultRequestHeaders.AcceptEncoding.Add(new StringWithQualityHeaderValue("gzip"));
ImageService.Instance.Initialize(new Configuration
{
	HttpClient = httpClient
});

See this: https://github.com/luberda-molinet/FFImageLoading/issues/441#issuecomment-271714973