Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 94 for empty (0.28 sec)

  1. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(Adapters.BIT_STRING.fromDer(bytes)).isEqualTo(bitString)
        assertThat(Adapters.BIT_STRING.toDer(bitString)).isEqualTo(bytes)
      }
    
      @Test fun `cannot decode empty bit string`() {
        val bytes = "0300".decodeHex()
        assertFailsWith<ProtocolException> {
          Adapters.BIT_STRING.fromDer(bytes)
        }.also { expected ->
          assertThat(expected).hasMessage("malformed bit string")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  2. docs/changelogs/changelog_4x.md

        detecting the TLS capabilities of the host platform.
    
     *  Fix: Don't crash in `HttpUrl.topPrivateDomain()` when the hostname is malformed.
    
     *  Fix: Don't attempt Brotli decompression if the response body is empty.
    
    
    ## Version 4.7.2
    
    _2020-05-20_
    
     *  Fix: Don't crash inspecting whether the host platform is JVM or Android. With 4.7.0 and 4.7.1 we
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

        data.write("8a00".decodeHex()) // Pong
        data.write("80026c6f".decodeHex()) // lo
        clientReader.processNextFrame()
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertPong(EMPTY)
        callback.assertTextMessage("Hello")
      }
    
      @Test fun clientTwoFrameCompressedHelloWithPongs() {
    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)
  4. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          .isEqualTo(parse("http://username@host/path"))
      }
    
      @Test
      fun passwordWithEmptyUsername() {
        // Chrome doesn't mind, but Firefox rejects URLs with empty usernames and non-empty passwords.
        assertThat(parse("http://:@host/path"))
          .isEqualTo(parse("http://host/path"))
        assertThat(parse("http://:password@@host/path").encodedPassword)
          .isEqualTo("password%40")
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        platform.assumeHttp2Support()
        enableProtocol(Protocol.HTTP_2)
        postBodyRetransmittedAfterAuthorizationFail("abc")
      }
    
      /** Don't explode when resending an empty post. https://github.com/square/okhttp/issues/1131  */
      @Test
      fun postEmptyBodyRetransmittedAfterAuthorizationFail() {
        postBodyRetransmittedAfterAuthorizationFail("")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

    import java.net.Socket
    import okhttp3.Headers
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.internal.EMPTY_HEADERS
    import okio.Buffer
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.Timeout
    
    @Timeout(30)
    class RecordedRequestTest {
      private val headers: Headers = EMPTY_HEADERS
    
      @Test fun testIPv4() {
        val socket =
          FakeSocket(
    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)
  7. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

    @ExperimentalOkHttpApi
    class RecordedRequest(
      val requestLine: String,
      /** All headers. */
      val headers: Headers,
      /**
       * The sizes of the chunks of this request's body, or an empty list if the request's body
       * was empty or unchunked.
       */
      val chunkSizes: List<Int>,
      /** The total size of the body of this POST request (before truncation).*/
      val bodySize: Long,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
  8. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     *
     * If a path's last segment is the empty string then the path ends with "/". This class always
     * builds non-empty paths: if the path is omitted it defaults to "/". The default path's segment
     * list is a single empty string: `[""]`.
     *
     * ### Query
     *
     * The query is optional: it can be null, empty, or non-empty. For many HTTP URLs the query string
    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)
  9. okhttp-sse/build.gradle.kts

      testImplementation(projects.mockwebserver3Junit5)
      testImplementation(libs.junit)
      testCompileOnly(libs.findbugs.jsr305)
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 754 bytes
    - Viewed (1)
  10. okhttp-brotli/build.gradle.kts

      testImplementation(libs.kotlin.test.common)
      testImplementation(libs.kotlin.test.junit)
      testImplementation(libs.assertk)
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 819 bytes
    - Viewed (0)
Back to top