Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for boolean (0.15 sec)

  1. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      }
    
      @Test
      fun connectViaHttpsReusingConnectionsAfterRebuildingClient() {
        connectViaHttpsReusingConnections(true)
      }
    
      private fun connectViaHttpsReusingConnections(rebuildClient: Boolean) {
        server.useHttps(handshakeCertificates.sslSocketFactory())
        server.enqueue(MockResponse(body = "this response comes via HTTPS"))
        server.enqueue(MockResponse(body = "another response via HTTPS"))
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallTest.kt

                  return null
                }
    
                override fun writeTo(sink: BufferedSink) {
                  sink.writeUtf8("attempt " + attempt++)
                }
    
                override fun isOneShot(): Boolean {
                  return true
                }
              },
          )
        val response = client.newCall(request).execute()
        assertThat(response.code).isEqualTo(503)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CacheTest.kt

      }
    
      @Test
      fun requestMethodTraceIsNotCached() {
        testRequestMethod("TRACE", false)
      }
    
      private fun testRequestMethod(
        requestMethod: String,
        expectCached: Boolean,
        withOverride: Boolean = false,
      ) {
        // 1. Seed the cache (potentially).
        // 2. Expect a cache hit or miss.
        server.enqueue(
          MockResponse.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
Back to top