Class JdkHttpClient

    • Constructor Detail

      • JdkHttpClient

        public JdkHttpClient()
        Creates a JdkHttpClient with no connection or read timeouts and no proxy.
      • JdkHttpClient

        public JdkHttpClient​(Proxy proxy)
        Creates a JdkHttpClient with no connection or read timeouts and a specific proxy.
        Parameters:
        proxy - the proxy to use for HTTP requests (can be null)
      • JdkHttpClient

        public JdkHttpClient​(Duration connectTimeout,
                             Duration readTimeout)
        Creates a JdkHttpClient with specified connection and read timeouts, but no proxy.
        Parameters:
        connectTimeout - the duration to wait for establishing a connection (can be null)
        readTimeout - the duration to wait for reading data (can be null)
      • JdkHttpClient

        public JdkHttpClient​(Duration connectTimeout,
                             Duration readTimeout,
                             Proxy proxy)
        Creates a JdkHttpClient with specified connection and read timeouts and a proxy.
        Parameters:
        connectTimeout - the duration to wait for establishing a connection (can be null)
        readTimeout - the duration to wait for reading data (can be null)
        proxy - the proxy to use for HTTP requests (can be null)