Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 111 for One (0.13 sec)

  1. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/CertificateAdapters.kt

       * ```
       */
      internal val rdnSequence: BasicDerAdapter<List<List<AttributeTypeAndValue>>> =
        attributeTypeAndValue.asSetOf().asSequenceOf()
    
      /**
       * ```
       * Name ::= CHOICE {
       *   -- only one possibility for now --
       *   rdnSequence  RDNSequence
       * }
       * ```
       */
      internal val name: DerAdapter<Pair<DerAdapter<*>, Any?>> =
        Adapters.choice(
          rdnSequence,
        )
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.6K bytes
    - Viewed (1)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

    import org.junit.jupiter.api.Test
    
    class WebSocketReaderTest {
      private val data = Buffer()
      private val callback = WebSocketRecorder("client")
      private val random = Random(0)
    
      // Mutually exclusive. Use the one corresponding to the peer whose behavior you wish to test.
      private val serverReader =
        WebSocketReader(
          isClient = false,
          source = data,
          frameCallback = callback.asFrameCallback(),
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_3x.md

        take and covers resolving DNS, connecting, writing the request body, server processing, and
        reading the full response body. If a call requires redirects or retries all must complete within
        one timeout period.
    
        Use `OkHttpClient.Builder.callTimeout()` to specify the default duration and `Call.timeout()` to
        specify the timeout of an individual call.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

        assertThat(response.body.string()).isEqualTo("abc")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
    
        // Note that although we have two routes available, we only use one. The retry is permitted
        // because there are routes available, but it chooses the existing connection since it isn't
        // yet considered unhealthy.
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            handshakeCertificates.trustManager,
          )
          .build()
      }
    
      private fun buildServerSslSocketFactory(): SSLSocketFactory {
        // The test uses JDK default SSL Context instead of the Platform provided one
        // as Conscrypt seems to have some differences, we only want to test client side here.
        return try {
          val keyManager =
            newKeyManager(
              null,
              serverCert,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

              adapter != null -> adapter.fromDer(reader)
              else -> reader.readUnknown()
            }
          }
        }
      }
    
      /**
       * Object class to adapter type. This approach limits us to one adapter per Kotlin class, which
       * might be too few for values like UTF_STRING and OBJECT_IDENTIFIER that share a Kotlin class but
       * have very different ASN.1 interpretations.
       */
      private val defaultAnyChoices =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       * | `http://[::1]/`       | `"::1"`         |
       * | `http://xn--n3h.net/` | `"xn--n3h.net"` |
       */
      @get:JvmName("host") val host: String,
      /**
       * The explicitly-specified port if one was provided, or the default port for this URL's scheme.
       * For example, this returns 8443 for `https://square.com:8443/` and 443 for
       * `https://square.com/`. The result is in `[1..65535]`.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        }
        if (e is SSLPeerUnverifiedException) {
          // e.g. a certificate pinning error.
          return false
        }
        // An example of one we might want to retry with a different route is a problem connecting to a
        // proxy and would manifest as a standard IOException. Unless it is one we know we should not
        // retry, we return true and try a new route.
        return true
      }
    
      /**
    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)
  9. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

      }
    
      @Throws(IOException::class)
      override fun writeTo(sink: BufferedSink) {
        writeOrCountBytes(sink, false)
      }
    
      /**
       * Either writes this request to [sink] or measures its content length. We have one method do
       * double-duty to make sure the counting and content are consistent, particularly when it comes
       * to awkward operations like measuring the encoded length of header strings, or the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

          .isGreaterThan(message.length.toLong()) // Not compressed.
        assertThat(client.processNextFrame()).isTrue()
        client.listener.assertTextMessage(message)
      }
    
      /** One peer's streams, listener, and web socket in the test.  */
      private class TestStreams(
        client: Boolean,
        private val taskFaker: TaskFaker,
        private val sourcePipe: Pipe,
        private val sinkPipe: Pipe,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
Back to top