IoHttpTransport constructor
IoHttpTransport({
- Duration? connectTimeout,
- HttpClient? client,
A transport that sends through client, or through a new
HttpClient when none is given. connectTimeout, when set, becomes
the client's connectionTimeout: the longest wait for a connection
to open. close closes the client, also one passed in.
Implementation
IoHttpTransport({Duration? connectTimeout, io.HttpClient? client})
: _client = client ?? io.HttpClient() {
if (connectTimeout != null) {
_client.connectionTimeout = connectTimeout;
}
}