ClientOptions constructor

const ClientOptions({
  1. Duration connectTimeout = unsetTimeout,
  2. Duration writeTimeout = unsetTimeout,
  3. Duration readTimeout = unsetTimeout,
  4. Iterable<Host>? hosts,
  5. Map<String, dynamic>? headers,
  6. Iterable<AgentSegment>? agentSegments,
  7. Requester? requester,
  8. dynamic logger(
    1. Object?
    )?,
  9. Iterable<Interceptor>? interceptors,
  10. HttpClientAdapter? httpClientAdapter,
  11. 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,
});