Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for locale (0.27 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import java.net.Socket
    import java.net.SocketException
    import java.security.SecureRandom
    import java.security.cert.CertificateException
    import java.security.cert.X509Certificate
    import java.util.Collections
    import java.util.Locale
    import java.util.concurrent.ConcurrentHashMap
    import java.util.concurrent.CountDownLatch
    import java.util.concurrent.LinkedBlockingQueue
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.atomic.AtomicInteger
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CacheTest.kt

          .isEqualTo(lastModifiedDate)
      }
    
      @Test
      fun maxAgeInThePastWithDateHeaderButNoLastModifiedHeader() {
        // Chrome interprets max-age relative to the local clock. Both our cache
        // and Firefox both use the earlier of the local and server's clock.
        assertNotCached(
          MockResponse.Builder()
            .addHeader("Date: " + formatDate(-120, TimeUnit.SECONDS))
            .addHeader("Cache-Control: max-age=60")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

            .build()
        }
    
        companion object {
          /** Synthetic response header: the local time when the request was sent. */
          private val SENT_MILLIS = "${Platform.get().getPrefix()}-Sent-Millis"
    
          /** Synthetic response header: the local time when the response was received. */
          private val RECEIVED_MILLIS = "${Platform.get().getPrefix()}-Received-Millis"
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt

            .addSubjectAlternativeName("intermediate_ca.com")
            .build()
        serverCert =
          HeldCertificate.Builder()
            .signedBy(serverIntermediateCa)
            .serialNumber(3L)
            .commonName("Local Host")
            .addSubjectAlternativeName(server.hostName)
            .build()
        clientRootCa =
          HeldCertificate.Builder()
            .serialNumber(1L)
            .certificateAuthority(1)
            .commonName("root")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  5. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainServerSocketFactory.java

          serverSocketChannel.configureBlocking(true);
          serverSocketChannel.socket().bind(address);
        }
    
        @Override public int getLocalPort() {
          return 1; // A white lie. There is no local port.
        }
    
        @Override public SocketAddress getLocalSocketAddress() {
          return endpoint;
        }
    
        @Override public Socket accept() throws IOException {
          try {
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 12 16:33:52 GMT 2019
    - 3.1K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/CallTest.kt

          .assertHeader("a\tb", "c\u007fd")
          .assertHeader("\ud83c\udf69", "\u2615\ufe0f")
          .assertHeader("", "ef")
      }
    
      @Test
      fun customDns() {
        // Configure a DNS that returns our local MockWebServer for android.com.
        val dns = FakeDns()
        dns["android.com"] = Dns.SYSTEM.lookup(server.url("/").host)
        client =
          client.newBuilder()
            .dns(dns)
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
Back to top