Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for Treat (0.43 sec)

  1. okhttp/src/main/kotlin/okhttp3/ConnectionPool.kt

       */
      @ExperimentalOkHttpApi
      fun setPolicy(
        address: Address,
        policy: AddressPolicy,
      ) {
        delegate.setPolicy(address, policy)
      }
    
      /**
       * A policy for how the pool should treat a specific address.
       */
      class AddressPolicy(
        /**
         * How many concurrent calls should be possible to make at any time.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 03 20:39:41 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

        /**
         * Returns an error for the DNS query.
         */
        fun onFailure(
          hostname: String,
          e: IOException,
        )
      }
    
      /**
       * Class of DNS addresses, such that clients that treat these differently, such
       * as attempting IPv6 first, can make such decisions.
       */
      @ExperimentalOkHttpApi
      enum class DnsClass(val type: Int) {
        IPV4(TYPE_A),
        IPV6(TYPE_AAAA),
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

    @Tag("Slowish")
    class RelayTest {
      @TempDir
      var tempDir: File? = null
      private val executor = Executors.newCachedThreadPool(threadFactory("RelayTest"))
      private val metadata: ByteString = "great metadata!".encodeUtf8()
      private lateinit var file: File
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
      }
    
      @AfterEach
      fun tearDown() {
        executor.shutdown()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.1K bytes
    - Viewed (0)
Back to top