Skip to content

Solid.Http.Extensions.Zip Usage

Gísli Konráð Björnsson edited this page Mar 17, 2018 · 1 revision

Using ZipArchive

Getting a ZipArchive from the response can be done as follows

var client = context.RequestServices.GetRequiredService<ISolidHttpClientFactory>().CreateWithBaseAddress("http://SomeBaseUri");
var zipArch = await client
    .GetAsync("some/path/that/returns/zip/file", cancellationToken)
    .As<ZipArchive>();