- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for endsWith (0.18 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/ws/MessageDeflater.kt
require(deflatedBytes.size == 0L) if (noContextTakeover) { deflater.reset() } deflaterSink.write(buffer, buffer.size) deflaterSink.flush() if (deflatedBytes.endsWith(EMPTY_DEFLATE_BLOCK)) { val newSize = deflatedBytes.size - LAST_OCTETS_COUNT_TO_REMOVE_AFTER_DEFLATION deflatedBytes.readAndWriteUnsafe().use { cursor -> cursor.resizeBuffer(newSize) } } else {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.1K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt
return when { file.name.endsWith(".css") -> "text/css" file.name.endsWith(".gif") -> "image/gif" file.name.endsWith(".html") -> "text/html" file.name.endsWith(".jpeg") -> "image/jpeg" file.name.endsWith(".jpg") -> "image/jpeg" file.name.endsWith(".js") -> "application/javascript" file.name.endsWith(".png") -> "image/png" else -> "text/plain" } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
var pattern = pattern if (hostname.isNullOrEmpty() || hostname.startsWith(".") || hostname.endsWith("..") ) { // Invalid domain name. return false } if (pattern.isNullOrEmpty() || pattern.startsWith(".") || pattern.endsWith("..") ) { // Invalid pattern. return false }
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) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt
if (dir.asFile.isDirectory) { for (cacheDir in dir.asFile.listFiles()) { val cacheDirName = cacheDir.name if (!cacheDirName.startsWith(dirPrefix) || !cacheDirName.endsWith(dirSuffix)) { continue } val dirVersion = cacheDirName.removePrefix(dirPrefix).removeSuffix(dirSuffix) if (!dirVersion.matches(dirVersionPattern)) {
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Mon Jan 08 12:45:57 GMT 2024 - 4.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
assertThat(cache.hitCount()).isEqualTo(0) } private fun corruptMetadata(corruptor: (String) -> String) { val metadataFile = fileSystem.allPaths.find { it.name.endsWith(".0") } if (metadataFile != null) { val contents = fileSystem.read(metadataFile) { readUtf8() } fileSystem.write(metadataFile) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 6K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt
when { token == null -> { // Value is "double-quoted". That's valid and our regex group already strips the quotes. parameter.groups[3]!!.value } token.startsWith("'") && token.endsWith("'") && token.length > 2 -> { // If the token is 'single-quoted' it's invalid! But we're lenient and strip the quotes. token.substring(1, token.length - 1) } else -> token }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.1K bytes - Viewed (0) -
build-logic/integration-testing/src/main/kotlin/gradlebuild.test-fixtures.gradle.kts
`java-test-fixtures` groovy id("gradlebuild.dependency-modules") } // The below mimics what the java-library plugin does, but creating a library of test fixtures instead. sourceSets.matching { it.name.endsWith("Test") }.all { // the 'test' (with lower case 't') source set is already configured to use test fixtures by the JavaTestFixturesPlugin configurations[implementationConfigurationName].dependencies.add(
Plain Text - Registered: Wed Mar 27 11:36:08 GMT 2024 - Last Modified: Mon Feb 12 13:19:06 GMT 2024 - 3.3K bytes - Viewed (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:10:43 GMT 2024 - 3.8K bytes - Viewed (0) -
build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/services/CachesCleaner.kt
val expireDistributionCache = Spec<GradleVersion> { candidateVersion -> (candidateVersion.isSnapshot && candidateVersion < gradleVersion) || candidateVersion.version.endsWith("-snapshot-1") } // Remove state for old versions of Gradle that we're unlikely to ever require again fileSystemOperations.removeOldVersionsFromDir(workerDir.dir("caches"), expireDistributionCache)
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Mon Jan 08 12:45:57 GMT 2024 - 4.2K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.cache-miss-monitor.gradle.kts
fun Project.isInBuild(vararg buildTypeIds: String) = providers.environmentVariable("BUILD_TYPE_ID").orNull?.let { currentBuildTypeId -> buildTypeIds.any { currentBuildTypeId.endsWith(it) }
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Thu Mar 07 05:49:29 GMT 2024 - 4.6K bytes - Viewed (0)