Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for density (0.21 sec)

  1. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import org.apache.hc.client5.http.classic.methods.HttpGet
    import org.apache.hc.client5.http.impl.classic.HttpClients
    import org.apache.hc.core5.http.io.entity.EntityUtils
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.Test
    
    /**
     * Apache HttpClient 5.x.
     *
     * https://hc.apache.org/httpcomponents-client-5.0.x/index.html
     *
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

        )
        assertThat(callbacks.remove()).isEqualTo(22L)
      }
    
      @Test
      fun namePrefixIgnored() {
        consumeEvents(
          """
          |data: a
          |eventually
          |database
          |identity
          |retrying
          |
          |
          """.trimMargin(),
        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "a"))
      }
    
      @Test
      fun nakedNameClearsIdAndTypeAppendsData() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        }
    
        private fun bodyHasUnknownEncoding(headers: Headers): Boolean {
          val contentEncoding = headers["Content-Encoding"] ?: return false
          return !contentEncoding.equals("identity", ignoreCase = true) &&
            !contentEncoding.equals("gzip", ignoreCase = true)
        }
    
        private fun bodyIsStreaming(response: Response): Boolean {
          val contentType = response.body.contentType()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          .override(Encoding.IDENTITY, '?'.code, '`'.code)
          .override(Encoding.PERCENT, '\''.code)
          .override(Encoding.SKIP, '#'.code, '+'.code)
          .test(UrlComponentEncodingTester.Component.QUERY_VALUE)
      }
    
      @Test
      fun fragmentCharacters() {
        UrlComponentEncodingTester.newInstance()
          .override(
            Encoding.IDENTITY,
            ' '.code,
            '"'.code,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 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

      fun getContentEncodingConnects() {
        server.enqueue(
          MockResponse(
            headers = headersOf("Content-Encoding", "identity"),
            body = "ABC",
          ),
        )
        val response = getResponse(newRequest("/"))
        assertThat(response.header("Content-Encoding")).isEqualTo("identity")
        response.body.close()
      }
    
      @Test
      fun urlContainsQueryButNoPath() {
        server.enqueue(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

        assertThat(url.host).startsWith(Punycode.PREFIX_STRING)
      }
    
      enum class Encoding {
        IDENTITY {
          override fun encode(codePoint: Int): String {
            return String(codePoint)
          }
        },
        PERCENT {
          override fun encode(codePoint: Int): String {
            val utf8 = IDENTITY.encode(codePoint).encodeUtf8()
            val percentEncoded = Buffer()
            for (i in 0 until utf8.size) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/osgi/OsgiTest.kt

        // available in the repository.
        val runRequireString =
          REQUIRED_BUNDLES.joinToString(separator = ",") {
            "osgi.identity;filter:='(osgi.identity=$it)'"
          }
    
        val bndEditModel =
          BndEditModel(workspace).apply {
            // Temporary project to satisfy bnd API.
            project = Project(workspace, workspaceDir.toFile())
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheTest.kt

            .header("Accept-Encoding", "identity")
            .build()
        val response1 = client.newCall(request).execute()
        assertThat(response1.body.string()).isEqualTo("A")
        val request1 =
          Request.Builder()
            .url(url)
            .header("Accept-Language", "fr-CA")
            .header("Accept-Charset", "UTF-8")
            .header("Accept-Encoding", "identity")
            .build()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  9. LICENSE.txt

          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.
    
          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jul 23 14:02:28 GMT 2012
    - 11.1K bytes
    - Viewed (0)
  10. okhttp-tls/README.md

        .build();
    ```
    
    Client Authentication
    ---------------------
    
    The above scenario is representative of most TLS set ups: the client uses certificates to validate
    the identity of a server. The converse is also possible. Here we create a server that authenticates
    a client and a client that authenticates a server.
    
    ```java
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 9.1K bytes
    - Viewed (1)
Back to top