Couldn't find a way to add support for SSL pinning or SecurityContext, is it possible to add?
SecurityContext is only available in dart:io. This package is cross-compatible with dart:html. If you need more precise control over security you should use dart:io directly.
Note that you can construct an IOClient from this package with any HttpClient from dart:io if you need something that fits this interface to pass to other code. That client can be constructed with a SecurityContext argument.
https://pub.dartlang.org/documentation/http/latest/io_client/IOClient/IOClient.html
Ah, missed that. Thanks!
I'm sorry, but how do I import IOClient?
I'm sorry, but how do I import IOClient?
import 'package:http/io_client.dart';
Most helpful comment
SecurityContextis only available indart:io. This package is cross-compatible withdart:html. If you need more precise control over security you should usedart:iodirectly.Note that you can construct an
IOClientfrom this package with anyHttpClientfromdart:ioif you need something that fits this interface to pass to other code. That client can be constructed with aSecurityContextargument.https://pub.dartlang.org/documentation/http/latest/io_client/IOClient/IOClient.html