Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for roboto (0.16 sec)

  1. regression-test/src/androidTest/java/okhttp/regression/IssueReproductionTest.java

    @RunWith(AndroidJUnit4.class)
    public class IssueReproductionTest {
      @Test public void getFailsWithoutAdditionalCert() throws IOException {
        OkHttpClient client = new OkHttpClient();
    
        sendRequest(client, "https://google.com/robots.txt");
      }
    
      private void sendRequest(OkHttpClient client, String url) throws IOException {
        Request request = new Request.Builder()
                .url(url)
                .build();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jul 26 06:37:08 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  2. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt

      @Test
      fun testHttp2() {
        val client = HttpAsyncClients.createHttp2Default()
    
        client.use { client ->
          client.start()
          val request = SimpleHttpRequests.get("https://google.com/robots.txt")
          val response = client.execute(request, LoggingCallback).get()
    
          println("Protocol ${response.version}")
          println("Response ${response.code}")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/OpenJSSETest.kt

        assertEquals(listOf("TLSv1.3", "TLSv1.2"), s.enabledProtocols.toList())
      }
    
      @Test
      @Disabled
      fun testMozilla() {
        assumeNetwork()
    
        val request = Request.Builder().url("https://mozilla.org/robots.txt").build()
    
        client.newCall(request).execute().use {
          assertThat(it.protocol).isEqualTo(Protocol.HTTP_2)
          assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3)
        }
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  4. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        val dohEnabledClient =
          client.newBuilder().eventListener(EventListener.NONE).dns(dohDns).build()
    
        dohEnabledClient.get("https://www.twitter.com/robots.txt")
        dohEnabledClient.get("https://www.facebook.com/robots.txt")
      }
    
      @Test
      fun testCustomTrustManager() {
        assumeNetwork()
    
        val trustManager =
          object : X509TrustManager {
    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)
  5. okhttp/src/test/java/okhttp3/TestTls13Request.kt

          "https://www.allizom.org/robots.txt",
          "https://tls13.crypto.mozilla.org/",
          "https://tls.ctf.network/robots.txt",
          "https://rustls.jbp.io/",
          "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",
    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)
  6. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

        engine.shutdown()
        cacheDir.deleteRecursively()
      }
    
      @Test
      fun get() {
        val executor = Executors.newCachedThreadPool()
    
        val completableFuture = execute(engine, executor, "https://google.com/robots.txt")
    
        try {
          val response = completableFuture.get(10, TimeUnit.SECONDS)
    
          assertEquals(200, response.code)
          assertEquals("h3", response.negotiatedProtocol)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

                  .build())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 08 21:30:01 GMT 2019
    - 1.7K bytes
    - Viewed (0)
  8. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val request = Request("https://www.google.com/robots.txt".toHttpUrl())
    
        val networkRequest =
          request.newBuilder()
            .build()
    
        val call = client.newCall(networkRequest)
    
        call.execute().use { response ->
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .addHeader("Cookie: s=square")
            .addHeader("Cookie: a=android")
            .addHeader("Cookies: delicious")
        response.setHeader("cookie", "r=robot")
        assertThat(headersToList(response))
          .containsExactly("Cookies: delicious", "cookie: r=robot")
      }
    
      @Test
      fun mockResponseSetHeaders() {
        val response =
          MockResponse()
            .clearHeaders()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * chain. The chain terminates in a self-signed "root" certificate. Signing certificates in the
     * middle of the chain are called "intermediates". Organizations that offer certificate signing are
     * called certificate authorities (CAs).
     *
     * Browsers and other HTTP clients need a set of trusted root certificates to authenticate their
     * peers. Sets of root certificates are managed by either the HTTP client (like Firefox), or the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
Back to top