Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for geturl (0.14 sec)

  1. okhttp/src/test/java/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(ackFrame.type).isEqualTo(Http2.TYPE_SETTINGS)
        assertThat(ackFrame.streamId).isEqualTo(0)
        assertThat(ackFrame.ack).isTrue()
    
        taskFaker.runTasks()
    
        return connection
      }
    
      private fun updateMaxConcurrentStreams(
        connection: Http2Connection,
        amount: Int,
      ) {
        val settings = Settings()
        settings[Settings.MAX_CONCURRENT_STREAMS] = amount
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 24 04:40:49 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

     * code shouldn't use these, they're necessary for clients migrating from OkHttp 3.x and this test
     * ensures the symbols remain available and with the expected parameter and return types.
     */
    @Suppress(
      "DEPRECATION_ERROR",
      "UNUSED_VALUE",
      "UNUSED_VARIABLE",
      "VARIABLE_WITH_REDUNDANT_INITIALIZER",
    )
    class KotlinDeprecationErrorTest {
      private val factory = TestValueFactory()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt

          assertThat(expected.message!!).contains("closed")
        }
      }
    
      private fun binaryData(length: Int): ByteString {
        val junk = ByteArray(length)
        random.nextBytes(junk)
        return junk.toByteString()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat(verifier.verify("k.com", session)).isFalse()
        assertThat(verifier.verify("K.com", session)).isFalse()
      }
    
      private fun certificateSANs(peerCertificate: X509Certificate): List<String> {
        return when (val subjectAlternativeNames = peerCertificate.subjectAlternativeNames) {
          null -> listOf()
          else -> subjectAlternativeNames.map { c: List<*> -> c[1] as String }
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 40.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestTest.kt

            " set-cookie:██," +
            " user-agent:OkHttp" +
            "]}",
        )
      }
    
      private fun bodyToHex(body: RequestBody): String {
        val buffer = Buffer()
        body.writeTo(buffer)
        return buffer.readByteString().hex()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

            if (nextSnapshot != null) return true
    
            synchronized(this@DiskLruCache) {
              // If the cache is closed, truncate the iterator.
              if (closed) return false
    
              while (delegate.hasNext()) {
                nextSnapshot = delegate.next()?.snapshot() ?: continue
                return true
              }
            }
    
            return false
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

        var result = peekedHeader
    
        if (result == null) {
          result = readHeader()
          peekedHeader = result
        }
    
        if (result.isEndOfData) return null
    
        return result
      }
    
      /**
       * Consume the next header in the stream and return it. If there is no header to read because we
       * have reached a limit, this returns [END_OF_DATA].
       */
      internal fun readHeader(): DerHeader {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

            return 0L
          }
    
          earliestEvictableConnection != null -> {
            // A connection will be ready to evict soon.
            return earliestEvictableIdleAtNs + keepAliveDurationNs - now
          }
    
          inUseConnectionCount > 0 -> {
            // All connections are in use. It'll be at least the keep alive duration 'til we run again.
            return keepAliveDurationNs
          }
    
    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)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

            return CacheStrategy(null, null)
          }
    
          return candidate
        }
    
        /** Returns a strategy to use assuming the request can use the network. */
        private fun computeCandidate(): CacheStrategy {
          // No cached response.
          if (cacheResponse == null) {
            return CacheStrategy(request, null)
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

      val port: Int
        get() {
          before()
          return portField
        }
    
      val hostName: String
        get() {
          before()
          return _inetSocketAddress!!.address.hostName
        }
    
      private var _inetSocketAddress: InetSocketAddress? = null
    
      val inetSocketAddress: InetSocketAddress
        get() {
          before()
          return InetSocketAddress(hostName, portField)
        }
    
      /**
    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)
Back to top