Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 94 for empty (0.2 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

          assertThat(expected.message).isEqualTo("Code 1005 is reserved and may not be used.")
        }
      }
    
      @Test fun serverEmptyPing() {
        serverWriter.writePing(EMPTY)
        assertData("8900")
      }
    
      @Test fun clientEmptyPing() {
        clientWriter.writePing(EMPTY)
        assertData("898060b420bb")
      }
    
      @Test fun serverPingWithPayload() {
        serverWriter.writePing("Hello".encodeUtf8())
        assertData("890548656c6c6f")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/build.gradle.kts

      testImplementation(projects.okhttpTestingSupport)
      testImplementation(projects.okhttpTls)
      testImplementation(libs.assertk)
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Jan 04 05:32:07 GMT 2024
    - 842 bytes
    - Viewed (0)
  3. okhttp-urlconnection/build.gradle.kts

    dependencies {
      api(projects.okhttp)
      api(projects.okhttpJavaNetCookiejar)
      compileOnly(libs.findbugs.jsr305)
      compileOnly(libs.animalsniffer.annotations)
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Nov 20 16:20:29 GMT 2023
    - 764 bytes
    - Viewed (0)
  4. okhttp-tls/build.gradle.kts

    }
    
    animalsniffer {
      // InsecureExtendedTrustManager (API 24+)
      ignore = listOf("javax.net.ssl.X509ExtendedTrustManager")
    }
    
    mavenPublishing {
      configure(KotlinJvm(javadocJar = JavadocJar.Empty()))
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 06 05:31:00 GMT 2024
    - 1K bytes
    - Viewed (0)
  5. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
       * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the
       * data section was empty. Any number of calls to [Callback.onRetryChange] may occur while
       * processing an event.
       *
       * @return false when EOF is reached
       */
      @Throws(IOException::class)
      fun processNextEvent(): Boolean {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. mockwebserver/README.md

      server.shutdown();
    }
    ```
    
    Your unit tests might move the `server` into a field so you can shut it down
    from your test's `tearDown()`.
    
    ### API
    
    #### MockResponse
    
    Mock responses default to an empty response body and a `200` status code.
    You can set a custom body with a string, input stream or byte array. Also
    add headers with a fluent builder API.
    
    ```java
    MockResponse response = new MockResponse()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 5K bytes
    - Viewed (1)
  7. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     */
    fun BufferedSource.readPlainTextIdnaMappingTable(): SimpleIdnaMappingTable {
      val mappedTo = Buffer()
      val result = mutableListOf<Mapping>()
    
      while (!exhausted()) {
        // Skip comment and empty lines.
        when (select(optionsDelimiter)) {
          DELIMITER_HASH -> {
            skipRestOfLine()
            continue
          }
    
          DELIMITER_NEWLINE -> {
            continue
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt

            "Cannot buffer entire body for content length: 2147483648",
          )
        }
      }
    
      @Test
      fun byteStringEmpty() {
        val body = body("")
        assertThat(body.byteString()).isEqualTo(ByteString.EMPTY)
      }
    
      @Test
      fun byteStringSeesBom() {
        val body = body("efbbbf68656c6c6f")
        val actual = body.byteString()
        val expected: ByteString = "efbbbf68656c6c6f".decodeHex()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    /** Returns true if this string is not a host name and might be an IP address. */
    fun String.canParseAsIpAddress(): Boolean = VERIFY_AS_IP_ADDRESS.matches(this)
    
    /**
     * Returns true if the length is not valid for DNS (empty or greater than 253 characters), or if any
     * label is longer than 63 characters. Trailing dots are okay.
     */
    internal fun String.containsInvalidLabelLengths(): Boolean {
      if (length !in 1..253) return true
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

    import org.junit.jupiter.api.Test
    
    @Suppress("HttpUrlsUsage") // Don't warn if we should be using https://.
    open class HttpUrlJvmTest {
      val platform = PlatformRule()
    
      /** This one's ugly: the HttpUrl's host is non-empty, but the URI's host is null. */
      @Test
      fun hostContainsOnlyStrippedCharacters() {
        val url = "http://>/".toHttpUrl()
        assertThat(url.host).isEqualTo(">")
        assertThat(url.toUri().host).isNull()
      }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
Back to top