AppHttpClient constructor

AppHttpClient({
  1. BaseOptions? baseOptions,
  2. List<Interceptor>? interceptors,
  3. bool debug = true,
  4. int requestSendTimeout = HttpConstants.requestReceiveTimeout,
  5. int requestReceiveTimeout = HttpConstants.requestSendTimeout,
})

Implementation

AppHttpClient(
    {this.baseOptions,
    List<Interceptor>? interceptors,
    this.debug = true,
    int requestSendTimeout = HttpConstants.requestReceiveTimeout,
    int requestReceiveTimeout = HttpConstants.requestSendTimeout})
    : super(
          interceptors: interceptors ??
              [ErrorInterceptor(), if (debug) LoggingInterceptor()],
          useLogInterceptor: false,
          baseOptions: baseOptions,
          requestReceiveTimeout: requestReceiveTimeout,
          requestSendTimeout: requestSendTimeout);