ioFetch function
The wallet's HTTP over dart:io (clearnet): no redirect followed, at most 4 MiB of an answer read, timeout for
each call (20 seconds for a mint; give the engine's payout one of its own with 45), and calls at once taken (the
kit asks the keys of up to eight keysets together). client: one of the app's own (its proxy, its certificates);
none, one made here. A redirect is not followed even when client would.
Implementation
HttpFetch ioFetch({Duration timeout = const Duration(seconds: 20), io.HttpClient? client}) {
final c = client ?? (io.HttpClient()..connectionTimeout = timeout);
return dartFetch(fetch: (r) => ioSend(c, r, timeout: timeout));
}