pinnedIoClient function

IOClient pinnedIoClient(
  1. List<String> rootsPem, {
  2. ProxyConfig? proxy,
})

A package:http client that trusts rootsPem and nothing else — an IOClient over pinnedHttpClient.

For libraries that take a package:http Client, such as SignalR's negotiate and long-polling transport. Throws a TlsException if a PEM does not parse. Closing it closes the underlying HttpClient.

Implementation

IOClient pinnedIoClient(List<String> rootsPem, {ProxyConfig? proxy}) =>
    IOClient(pinnedHttpClient(rootsPem, proxy: proxy));