- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for endswith (0.19 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/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/KotlinSourceQueries.kt
val sameParamCount = ktCtor.valueParameters.size == ctorParamTypes.size val sameParamTypes = sameParamCount && ctorParamTypes.mapIndexed { idx, paramType -> paramType.endsWith(ktCtor.valueParameters[idx].typeReference!!.text) }.all { it } sameName && sameParamCount && sameParamTypes } ?.isDocumentedAsSince(version) == true } private
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Wed Dec 20 20:38:19 GMT 2023 - 11.1K 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) -
okhttp/src/test/java/okhttp3/internal/tls/ClientAuthTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.internal.tls import assertk.assertThat import assertk.assertions.endsWith import assertk.assertions.isEqualTo import assertk.assertions.isNull import assertk.assertions.startsWith import java.io.IOException import java.net.SocketException import java.security.GeneralSecurityException
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) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
urlHost: String, domain: String, ): Boolean { if (urlHost == domain) { return true // As in 'example.com' matching 'example.com'. } return urlHost.endsWith(domain) && urlHost[urlHost.length - domain.length - 1] == '.' && !urlHost.canParseAsIpAddress() } private fun pathMatch( url: HttpUrl, path: String, ): Boolean {
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) -
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)