Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 75 for setaun (0.3 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

     *
     * Baseline test if we ned to validate OkHttp behaviour against other popular clients.
     */
    class JettyHttpClientTest {
      private val client = HttpClient()
    
      @BeforeEach fun setUp() {
        client.start()
      }
    
      @AfterEach fun tearDown() {
        client.stop()
      }
    
      @Test fun get(server: MockWebServer) {
        server.enqueue(MockResponse(body = "hello, Jetty HTTP Client"))
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

      private val fakeDns = FakeDns()
      private val recordingAuthenticator = RecordingAuthenticator()
      private val factory =
        TestValueFactory()
          .apply {
            dns = fakeDns
          }
    
      @BeforeEach
      fun setup() {
        Authenticator.setDefault(recordingAuthenticator)
      }
    
      @AfterEach
      fun tearDown() {
        Authenticator.setDefault(null)
        factory.close()
      }
    
      @Test
      fun testBasicAuth() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/ConscryptTest.kt

      @JvmField @RegisterExtension
      val platform = PlatformRule()
    
      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private val client = clientTestRule.newClient()
    
      @BeforeEach fun setUp() {
        platform.assumeConscrypt()
      }
    
      @Test
      fun testTrustManager() {
        assertThat(Conscrypt.isConscrypt(Platform.get().platformTrustManager())).isTrue()
      }
    
      @Test
      @Disabled
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. okhttp-coroutines/src/test/kotlin/okhttp3/SuspendCallTest.kt

      private var client = clientTestRule.newClientBuilder().build()
    
      private lateinit var server: MockWebServer
    
      val request by lazy { Request(server.url("/")) }
    
      @BeforeEach
      fun setup(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun suspendCall() {
        runTest {
          server.enqueue(MockResponse(body = "abc"))
    
          val call = client.newCall(request)
    
    Plain Text
    - Registered: Fri Apr 12 11:42:09 GMT 2024
    - Last Modified: Fri Apr 05 11:25:23 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  5. gradlew.bat

    echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
    echo.
    echo Please set the JAVA_HOME variable in your environment to match the
    echo location of your Java installation.
    
    goto fail
    
    :execute
    @rem Setup the command line
    
    set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
    
    
    @rem Execute Gradle
    Batch File
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Nov 25 16:14:58 GMT 2022
    - 2.7K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_2x.md

        subjected to URI’s overly-strict validation.
     *  Fix: Don't re-encode `+` as `%20` in encoded URL query strings. OkHttp
        prefers `%20` when doing its own encoding, but will retain `+` when that is
        provided.
     *  Fix: Enforce that callers call `WebSocket.close()` on IO errors. Error
        handling in WebSockets is significantly improved.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

        }
    
      private var client = clientTestRule.newClient()
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private lateinit var server: MockWebServer
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun legalToExecuteTwiceCloning() {
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

      private var client: OkHttpClient =
        clientTestRule.newClientBuilder()
          .connectionPool(ConnectionPool(connectionListener = listener))
          .fastFallback(fastFallback)
          .build()
    
      @BeforeEach
      fun setUp(server: MockWebServer?) {
        this.server = server
        platform.assumeNotOpenJSSE()
        platform.assumeNotBouncyCastle()
        listener.forbidLock(get(client.connectionPool))
        listener.forbidLock(client.dispatcher)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

          }
        }
    
        // When redirecting across hosts, drop all authentication headers. This
        // is potentially annoying to the application layer since they have no
        // way to retain them.
        if (!userResponse.request.url.canReuseConnectionFor(url)) {
          requestBuilder.removeHeader("Authorization")
        }
    
        return requestBuilder.url(url).build()
      }
    
      private fun retryAfter(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  10. okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt

        )
      private val loggingEventListenerFactory = LoggingEventListener.Factory(logRecorder)
      private lateinit var client: OkHttpClient
      private lateinit var url: HttpUrl
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
        client =
          clientTestRule.newClientBuilder()
            .eventListenerFactory(loggingEventListenerFactory)
            .sslSocketFactory(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top