Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 51 for Parameters (0.24 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

              authType: String?,
            ) {
              withoutHostCalled = true
            }
    
            // called by Android via reflection in X509TrustManagerExtensions
            @Suppress("unused", "UNUSED_PARAMETER")
            fun checkServerTrusted(
              chain: Array<out X509Certificate>,
              authType: String,
              hostname: String,
            ): List<X509Certificate> {
              withHostCalled = true
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  2. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

        @Throws(IOException::class)
        constructor(response: ResponseBody) : this(
          source = response.source(),
          boundary =
            response.contentType()?.parameter("boundary")
              ?: throw ProtocolException("expected the Content-Type to have a boundary parameter"),
        )
    
        @Throws(IOException::class)
        fun nextPart(): Part? {
          check(!closed) { "closed" }
    
          if (noMoreParts) return null
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/RequestTest.kt

      @Test
      fun javaClassTag() {
        val uuidTag = UUID.randomUUID()
        val request =
          Request.Builder()
            .url("https://square.com")
            .tag(UUID::class.java, uuidTag) // Use the Class<*> parameter.
            .build()
        assertThat(request.tag()).isNull()
        assertThat(request.tag(Any::class.java)).isNull()
        assertThat(request.tag(UUID::class.java)).isSameAs(uuidTag)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

     * code shouldn't use these, they're necessary for clients migrating from OkHttp 3.x and this test
     * ensures the symbols remain available and with the expected parameter and return types.
     */
    @Suppress(
      "DEPRECATION_ERROR",
      "UNUSED_VALUE",
      "UNUSED_VARIABLE",
      "VARIABLE_WITH_REDUNDANT_INITIALIZER",
    )
    class KotlinDeprecationErrorTest {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

         *
         * @param streamId when a client-initiated stream ID (odd number), the origin of this alternate
         *     service is the origin of the stream. When zero, the origin is specified in the `origin`
         *     parameter.
         * @param origin when present, the [origin](http://tools.ietf.org/html/rfc6454) is typically
         *     represented as a combination of scheme, host and port. When empty, the origin is that of
         *     the `streamId`.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

      }
    
      @Test
      @Throws(Exception::class)
      fun unexpectedExtensionParameter() {
        extensionNegotiationFailure("permessage-deflate; unknown_parameter=15")
      }
    
      @Test
      @Throws(Exception::class)
      fun clientMaxWindowBitsIncluded() {
        extensionNegotiationFailure("permessage-deflate; client_max_window_bits=15")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 35.2K bytes
    - Viewed (1)
  7. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerCertificatesTest.kt

                version = 2L,
                serialNumber = BigInteger.ONE,
                signature =
                  AlgorithmIdentifier(
                    algorithm = SHA256_WITH_RSA_ENCRYPTION,
                    parameters = null,
                  ),
                issuer =
                  listOf(
                    listOf(
                      AttributeTypeAndValue(
                        type = COMMON_NAME,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 43.9K bytes
    - Viewed (0)
  8. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

        } ?: throw IllegalArgumentException("No such suite: $javaName")
      }
    }
    
    suspend fun fetchIanaSuites(okHttpClient: OkHttpClient): IanaSuites {
      val url = "https://www.iana.org/assignments/tls-parameters/tls-parameters-4.csv"
    
      val call = okHttpClient.newCall(Request(url.toHttpUrl()))
    
      val suites =
        call.executeAsync().use {
          if (!it.isSuccessful) {
            throw IOException("Failed ${it.code} ${it.message}")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/ws/WebSocketExtensionsTest.kt

          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
        assertThat(parse("permessage-deflate; unknown_parameter=15"))
          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
        assertThat(parse("permessage-deflate; unknown_parameter=15; unknown_parameter=15"))
          .isEqualTo(WebSocketExtensions(perMessageDeflate = true, unknownValues = true))
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CommonRequestBodyTest.kt

        val contentType = requestBody.contentType()!!
    
        assertThat(contentType.mediaType).isEqualTo("text/plain; charset=utf-8")
        assertThat(contentType.parameter("charset")).isEqualTo("utf-8")
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.1K bytes
    - Viewed (0)
Back to top