GZipHttpClient constructor

GZipHttpClient({
  1. Client? innerClient,
  2. int level = 6,
})

Implementation

GZipHttpClient({
  http.Client? innerClient,

  /// The higher the level, the smaller the output at the expense of memory.
  /// Defaults to [GZipCodec]'s default `6`.
  int level = 6,
})  : innerClient = innerClient ?? http.Client(),
      _encoder = GZipCodec(level: level);