Class ConnectionManager

  • All Implemented Interfaces:

    
    public final class ConnectionManager
    
                        

    Class representing a connection manager for making network requests. This class handles the connection and response interception for network requests.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final NetworkResponse start(NetworkRequest request) Starts a network request and returns the response.
      final Unit setOkHttpClientForTesting(OkHttpClient client)
      final OkHttpClient getOkHttpClient()
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionManager

        ConnectionManager(Array<Interceptor> interceptors, Array<Interceptor> networkInterceptors, Dispatcher dispatcher, TimeoutConfig timeoutConfig)
        Parameters:
        timeoutConfig - The timeout configuration for network requests.