HttpProxyService constructor

HttpProxyService({
  1. AiConfig? defaultConfig,
  2. Client? httpClient,
  3. Duration timeout = const Duration(seconds: 120),
})

Creates an HTTP proxy service.

Implementation

HttpProxyService({
  this.defaultConfig,
  http.Client? httpClient,
  this.timeout = const Duration(seconds: 120),
}) : httpClient = httpClient ?? http.Client();