Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 259 for com (0.19 sec)

  1. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

          assertThat(response.body.string()).isEqualTo("abc")
          assertThat(response.trailers()).isEqualTo(headersOf("caboose", "xyz"))
        }
      }
    
      @Disabled("Follow up with fix in https://github.com/square/okhttp/issues/6853")
      @Test
      fun serverDisconnectsBeforeSecondRequestHttp1() {
        enableProtocol(Protocol.HTTP_1_1)
    
        server.enqueue(MockResponse(code = 200, body = "Req1"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        val bytes = "820b6578616d706c652e636f6d".decodeHex()
        assertThat(CertificateAdapters.generalName.fromDer(bytes))
          .isEqualTo(generalNameDnsName to "example.com")
        assertThat(CertificateAdapters.generalName.toDer(generalNameDnsName to "example.com"))
          .isEqualTo(bytes)
      }
    
      @Test fun `extension with type hint for basic constraints`() {
        val extension =
          Extension(
            BASIC_CONSTRAINTS,
    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)
  3. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

    import assertk.assertions.isNull
    import okhttp3.internal.http.parseChallenges
    import org.junit.jupiter.api.Disabled
    import org.junit.jupiter.api.Test
    
    class HeadersChallengesTest {
      /** See https://github.com/square/okhttp/issues/2780.  */
      @Test fun testDigestChallengeWithStrictRfc2617Header() {
        val headers =
          Headers.Builder()
            .add(
              "WWW-Authenticate",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

        assertThat(certificatePinner.findMatchingPins("notexample.com")).isEmpty()
        assertThat(certificatePinner.findMatchingPins("example.com")).isEmpty()
        assertThat(certificatePinner.findMatchingPins("a.b.example.com")).isEmpty()
        assertThat(certificatePinner.findMatchingPins("ple.com")).isEmpty()
        assertThat(certificatePinner.findMatchingPins("com")).isEmpty()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 8.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *    number of prefixes (`us-west.www.publicobject.com`, `www.publicobject.com`) including no
     *    prefix at all (`publicobject.com`). For most applications this is the best way to configure
     *    certificate pinning.
     *
     *  * **Exactly one subdomain**: Use a single asterisk like `*.publicobject.com` to match exactly
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt

        // to the server certificate.
        //   www.android.com  matches www.android.com
        //   www.android.com  matches www.android.com.
        //   www.android.com. matches www.android.com.
        //   www.android.com. matches www.android.com
        if (!hostname.endsWith(".")) {
          hostname += "."
        }
        if (!pattern.endsWith(".")) {
          pattern += "."
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp-dnsoverhttps/src/test/java/okhttp3/dnsoverhttps/DnsOverHttpsTest.kt

              "2c100000e10000003840012750000000e10",
          ),
        )
        try {
          dns.lookup("google.com")
          fail<Any>()
        } catch (uhe: UnknownHostException) {
          assertThat(uhe.message).isEqualTo("google.com: NXDOMAIN")
        }
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.method).isEqualTo("GET")
        assertThat(recordedRequest.path)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 11K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/TestTls13Request.kt

          "https://h2o.examp1e.net",
          "https://mew.org/",
          "https://tls13.baishancloud.com/",
          "https://tls13.akamai.io/",
          "https://swifttls.org/",
          "https://www.googleapis.com/robots.txt",
          "https://graph.facebook.com/robots.txt",
          "https://api.twitter.com/robots.txt",
          "https://connect.squareup.com/robots.txt",
        )
    
      println("TLS1.3+TLS1.2")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  9. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

     */
    package okhttp.android.test
    
    import android.os.Build
    import androidx.test.platform.app.InstrumentationRegistry
    import com.google.android.gms.common.GooglePlayServicesNotAvailableException
    import com.google.android.gms.security.ProviderInstaller
    import com.squareup.moshi.Moshi
    import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
    import java.io.IOException
    import java.net.InetAddress
    import java.net.UnknownHostException
    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)
  10. okcurl/build.gradle.kts

    import com.vanniktech.maven.publish.JavadocJar
    import com.vanniktech.maven.publish.KotlinJvm
    import org.apache.tools.ant.taskdefs.condition.Os
    
    plugins {
      kotlin("jvm")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("com.palantir.graal")
      id("com.github.johnrengelman.shadow")
    }
    
    val copyResourcesTemplates = tasks.register<Copy>("copyResourcesTemplates") {
      from("src/main/resources-templates")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.8K bytes
    - Viewed (1)
Back to top