Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Early (0.14 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt

       * a CountdownLatch).
       */
      @Throws(InterruptedException::class)
      abstract fun dispatch(request: RecordedRequest): MockResponse
    
      /**
       * Returns an early guess of the next response, used for policy on how an incoming request should
       * be received. The default implementation returns an empty response. Mischievous implementations
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt

              message.startsWith("Found resumable session") -> Type.Handshake
              message.startsWith("Resuming session") -> Type.Handshake
              message.startsWith("Using PSK to derive early secret") -> Type.Handshake
              else -> Type.Unknown
            }
    
        override fun toString(): String {
          return if (param != null) {
            message + "\n" + param
          } else {
            message
          }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

        return newSSLContext().apply {
          init(null, arrayOf<TrustManager>(trustManager), null)
        }.socketFactory
      }
    
      companion object {
        val isSupported: Boolean =
          try {
            // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.
            Class.forName("org.conscrypt.Conscrypt\$Version", false, javaClass.classLoader)
    
            when {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       * [Call.request] is a redirect to a different address.
       *
       * Prior to OkHttp 4.3 this was incorrectly invoked when the client was ready to read headers.
       * This was misleading for tracing because it was too early.
       */
      open fun responseHeadersStart(call: Call) {
      }
    
      /**
       * Invoked immediately after receiving response headers.
       *
       * This method is always invoked after [responseHeadersStart].
       *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

              }
              .get(this) as? SecretKey
    
        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger.getLogger("javax.net.ssl")
              .apply {
                level = Level.FINEST
                useParentHandlers = false
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

              true
            } catch (cnfe: ClassNotFoundException) {
              false
            }
    
          val isCorrettoSupported: Boolean =
            try {
              // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.
              Class.forName("com.amazon.corretto.crypto.provider.AmazonCorrettoCryptoProvider")
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/DuplexTest.kt

       * OkHttp currently doesn't implement failing the request body stream independently of failing the
       * corresponding response body stream. This is necessary if we want servers to be able to stop
       * inbound data and send an early 400 before the request body completes.
       *
       * This test sends a slow request that is canceled by the server. It expects the response to still
       * be readable after the request stream is canceled.
       */
      @Disabled
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

            return source.trailers ?: EMPTY_HEADERS
          }
          if (errorCode != null) {
            throw errorException ?: StreamResetException(errorCode!!)
          }
          throw IllegalStateException("too early; can't read the trailers yet")
        }
      }
    
      /**
       * Sends a reply to an incoming stream.
       *
       * @param outFinished true to eagerly finish the output stream to send data to the remote peer.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/internal/platform/BouncyCastlePlatform.kt

            null, "" -> null
            else -> protocol
          }
        } else {
          super.getSelectedProtocol(sslSocket)
        }
    
      companion object {
        val isSupported: Boolean =
          try {
            // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.
            Class.forName("org.bouncycastle.jsse.provider.BouncyCastleJsseProvider", false, javaClass.classLoader)
    
            true
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http/HttpStatusCodes.kt

    /** `100 Continue` (HTTP/1.1 - RFC 7231)  */
    const val HTTP_CONTINUE = 100
    
    /** `102 Processing` (WebDAV - RFC 2518)  */
    const val HTTP_PROCESSING = 102
    
    /** `103 Early Hints (Early Hints - RFC 8297)` */
    const val HTTP_EARLY_HINTS = 103
    
    /** `307 Temporary Redirect` (HTTP/1.1 - RFC 7231)  */
    const val HTTP_TEMP_REDIRECT = 307
    
    /** `308 Permanent Redirect` (HTTP/1.1 - RFC 7538)  */
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 1.9K bytes
    - Viewed (0)
Back to top