io library

IO-only entry point: types that require dart:io and therefore cannot be part of the main package:netguard/netguard.dart surface.

Import this alongside the main library when you need to customise the native HTTP client:

import 'package:netguard/netguard.dart';
import 'package:netguard/io.dart';

netGuard.httpClientAdapter = IOHttpClientAdapter(
  createHttpClient: () => HttpClient()..idleTimeout = Duration.zero,
);

Importing this from code that also runs on the web will break the web build, which is exactly why it is not exported from the main library.

Classes

IOHttpClientAdapter
The default HttpClientAdapter for native platforms.

Functions

fingerprintOf(X509Certificate certificate) → String
SHA-256 DER fingerprint of certificate, lowercase hex.