Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for alice (0.2 sec)

  1. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("<-- END HTTP")
          .assertNoMoreLogs()
        networkLogs
          .assertLogEqual("--> GET $url http/1.1")
          .assertLogEqual("Host: $host")
          .assertLogEqual("Connection: Keep-Alive")
          .assertLogEqual("Accept-Encoding: gzip")
          .assertLogMatch(Regex("""User-Agent: okhttp/.+"""))
          .assertLogEqual("--> END GET")
          .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)"""))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

         * 13.5.1.
         */
        private fun isEndToEnd(fieldName: String): Boolean {
          return !"Connection".equals(fieldName, ignoreCase = true) &&
            !"Keep-Alive".equals(fieldName, ignoreCase = true) &&
            !"Proxy-Authenticate".equals(fieldName, ignoreCase = true) &&
            !"Proxy-Authorization".equals(fieldName, ignoreCase = true) &&
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

          Request.Builder()
            .url(route.address.url)
            .method("CONNECT", null)
            .header("Host", route.address.url.toHostHeader(includeDefaultPort = true))
            .header("Proxy-Connection", "Keep-Alive") // For HTTP/1.0 proxies like Squid.
            .header("User-Agent", USER_AGENT)
            .build()
    
        val fakeAuthChallengeResponse =
          Response.Builder()
            .request(proxyConnectRequest)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Cookie.kt

          val urlHost = url.host
          if (domain == null) {
            domain = urlHost
          } else if (!domainMatch(urlHost, domain)) {
            return null // No domain match? This is either incompetence or malice!
          }
    
          // If the domain is a suffix of the url host, it must not be a public suffix.
          if (urlHost.length != domain.length &&
            PublicSuffixDatabase.get().getEffectiveTldPlusOne(domain) == null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

       * simultaneously adopted and removed.
       */
      private val connections = ConcurrentLinkedQueue<RealConnection>()
    
      init {
        // Put a floor on the keep alive duration, otherwise cleanup will spin loop.
        require(keepAliveDuration > 0L) { "keepAliveDuration <= 0: $keepAliveDuration" }
      }
    
      fun idleConnectionCount(): Int {
        return connections.count {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

      }
    
      /**
       * Regression test for an edge case where closing response body in the HTTP engine doesn't release
       * the corresponding stream allocation. This test keeps those response bodies alive and reads
       * them after the redirect has completed. This forces a connection to not be reused where it would
       * be otherwise.
       *
       *
       * This test leaks a response body by not closing it.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
Back to top