Class HttpRequest.Config

    • Field Detail

      • CONNECT_TIMEOUT__DEFAULT

        private static final java.time.Duration CONNECT_TIMEOUT__DEFAULT
      • TIMEOUT__DEFAULT

        private static final java.time.Duration TIMEOUT__DEFAULT
      • READ_TIMEOUT__DEFAULT

        private static final java.time.Duration READ_TIMEOUT__DEFAULT
    • Constructor Detail

      • Config

        Config()
    • Method Detail

      • connectTimeout

        public abstract java.time.Duration connectTimeout()
        The timeout for establishing a TCP connection with remote server
        Returns:
      • readTimeout

        public abstract java.time.Duration readTimeout()
        The max time between two packets exchange
        Returns:
      • timeout

        public abstract java.time.Duration timeout()
        The wall time-out for the request, from establishing the connection to closing it.
        Returns: