ClientOptions constructor
const
ClientOptions({
- Duration connectTimeout = unsetTimeout,
- Duration writeTimeout = unsetTimeout,
- Duration readTimeout = unsetTimeout,
- Iterable<
Host> ? hosts, - Map<
String, dynamic> ? headers, - Iterable<
AgentSegment> ? agentSegments, - Requester? requester,
- dynamic logger()?,
- Iterable<
Interceptor> ? interceptors, - HttpClientAdapter? httpClientAdapter,
- String? compression,
Constructs a ClientOptions instance with the provided parameters.
Implementation
const ClientOptions({
this.connectTimeout = unsetTimeout,
this.writeTimeout = unsetTimeout,
this.readTimeout = unsetTimeout,
this.hosts,
this.headers,
this.agentSegments,
this.requester,
this.logger,
this.interceptors,
this.httpClientAdapter,
this.compression,
});