Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for Stuart (0.21 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

          noCoalescedConnections = true
        }
      }
    
      internal fun incrementSuccessCount() {
        this.withLock {
          successCount++
        }
      }
    
      @Throws(IOException::class)
      fun start() {
        idleAtNs = System.nanoTime()
        if (protocol == Protocol.HTTP_2 || protocol == Protocol.H2_PRIOR_KNOWLEDGE) {
          startHttp2()
        }
      }
    
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(handshake.peerCertificates.size).isEqualTo(1)
      }
    
      @Test
      fun shutdownTwice() {
        val server2 = MockWebServer()
        server2.start()
        server2.shutdown()
        try {
          server2.start()
          fail<Any>()
        } catch (expected: IllegalStateException) {
          // expected
        }
        server2.shutdown()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/CookiesTest.kt

        redirectTarget.start()
        val redirectTargetUrl = urlWithIpAddress(redirectTarget, "/")
        val redirectSource = MockWebServer()
        redirectSource.enqueue(
          MockResponse.Builder()
            .code(HttpURLConnection.HTTP_MOVED_TEMP)
            .addHeader("Location: $redirectTargetUrl")
            .build(),
        )
        redirectSource.start()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     * expected configuration when the connection fails. Be sure to do this on a trusted network, and
     * without man-in-the-middle tools like [Charles][charles] or [Fiddler][fiddler].
     *
     * For example, to pin `https://publicobject.com`, start with a broken configuration:
     *
     * ```java
     * String hostname = "publicobject.com";
     * CertificatePinner certificatePinner = new CertificatePinner.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

        user.addPlanToCancel(this)
        try {
          if (tunnelRequest != null) {
            val tunnelResult = connectTunnel()
    
            // Tunnel didn't work. Start it all again.
            if (tunnelResult.nextPlan != null || tunnelResult.throwable != null) {
              return tunnelResult
            }
          }
    
          if (route.address.sslSocketFactory != null) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Headers.kt

              index != -1 -> {
                addLenient(line.substring(0, index), line.substring(index + 1))
              }
              line[0] == ':' -> {
                // Work around empty header names and header names that start with a colon (created by old
                // broken SPDY versions of the response cache).
                addLenient("", line.substring(1)) // Empty header name.
              }
              else -> {
                // No header name.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        /** Returns true if this task is ready to start. */
        fun isReady() = true
    
        /** Do this task's work, and then start another, such as by calling [startNextTask]. */
        fun start()
      }
    
      private object TestThreadSerialTask : SerialTask {
        override fun start() = error("unexpected call")
      }
    
      inner class RunnableSerialTask(
        private val runnable: Runnable,
      ) : SerialTask {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

                cancelAll()
              } finally {
                coordinatorWaiting = false
              }
            }
          }
        }
      }
    
      /** Start another thread, unless a new thread is already scheduled to start. */
      private fun startAnotherThread() {
        lock.assertHeld()
        if (executeCallCount > runCallCount) return // A thread is still starting.
    
        executeCallCount++
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. mockwebserver/api/mockwebserver3.api

    	public final fun setServerSocketFactory (Ljavax/net/ServerSocketFactory;)V
    	public final fun setStarted (Z)V
    	public final fun shutdown ()V
    	public final fun start ()V
    	public final fun start (I)V
    	public final fun start (Ljava/net/InetAddress;I)V
    	public static synthetic fun start$default (Lmockwebserver3/MockWebServer;IILjava/lang/Object;)V
    	public final fun takeRequest ()Lmockwebserver3/RecordedRequest;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 03 21:59:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    fun String.trimSubstring(
      startIndex: Int = 0,
      endIndex: Int = length,
    ): String {
      val start = indexOfFirstNonAsciiWhitespace(startIndex, endIndex)
      val end = indexOfLastNonAsciiWhitespace(start, endIndex)
      return substring(start, end)
    }
    
    /**
     * Returns the index of the first character in this string that contains a character in
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
Back to top