- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 47 for substring (0.18 sec)
-
okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt
return host.substring(1, host.length - 5).lowercase() } override fun canonicalize(s: String): String = s.lowercase() }, PATH { override fun urlString(value: String): String = "http://example.com/a${value}z/" override fun encodedValue(url: HttpUrl): String { val path = url.encodedPath return path.substring(2, path.length - 2) }
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 12.3K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/SuiteId.kt
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 842 bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt
var s = typeSubtype.range.last + 1 while (s < length) { val parameter = PARAMETER.matchAtPolyfill(this, s) require(parameter != null) { "Parameter is not formatted correctly: \"${substring(s)}\" for: \"$this\"" } val name = parameter.groups[1]?.value if (name == null) { s = parameter.range.last + 1 continue } val token = parameter.groups[2]?.value
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt
} } else { // This character doesn't need encoding. Just copy it over. writeUtf8CodePoint(codePoint) } i += Character.charCount(codePoint) } } /** * Returns a substring of `input` on the range `[pos..limit)` with the following * transformations: * * * Tabs, newlines, form feeds and carriage returns are skipped. * * * In queries, ' ' is encoded to '+' and '+' is encoded to "%2B".
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 7.3K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientHttp2Test.kt
val response = client.execute(request, LoggingCallback).get() println("Protocol ${response.version}") println("Response ${response.code}") println("${response.body.bodyText.substring(0, 20)}...") Assert.assertEquals(ProtocolVersion("HTTP", 2, 0), response.version) } } } object LoggingCallback : FutureCallback<SimpleHttpResponse> {
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.6K bytes - Viewed (0) -
build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt
val subprojectName = settings.subprojects.first() val languageName = descriptor.language.getName().substring(0, 1).toUpperCase() + descriptor.language.getName().substring(1) val extraCompileJava = if (descriptor.language != Language.JAVA) """ > Task :$subprojectName:compileJava NO-SOURCE """.trimIndent() else ""
Plain Text - Registered: Wed Apr 24 11:36:11 GMT 2024 - Last Modified: Tue Feb 06 17:51:21 GMT 2024 - 13.8K bytes - Viewed (0) -
okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Apr 06 04:10:43 GMT 2024 - 3.8K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt
} if (requestLine.isNotEmpty()) { val methodEnd = requestLine.indexOf(' ') val pathEnd = requestLine.indexOf(' ', methodEnd + 1) this.method = requestLine.substring(0, methodEnd) var path = requestLine.substring(methodEnd + 1, pathEnd) if (!path.startsWith("/")) { path = "/" } this.path = path val scheme = if (socket is SSLSocket) "https" else "http"
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.1K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt
} @Test fun truncatedMetadataEntry() { val response = testCorruptingCache { corruptMetadata { // truncate metadata to 1/4 of length it.substring(0, it.length / 4) } } assertThat(response.body.string()).isEqualTo("ABC.2") // not cached assertThat(cache.requestCount()).isEqualTo(2) assertThat(cache.networkCount()).isEqualTo(2)
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 6K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/publicsuffix/PublicSuffixListGenerator.kt
while (!source.exhausted()) { var rule: ByteString = source.readUtf8LineStrict().toRule() ?: continue if (rule.startsWith(EXCEPTION_RULE_MARKER)) { rule = rule.substring(1) // We use '\n' for end of value. totalExceptionRuleBytes += rule.size + 1 sortedExceptionRules.add(rule) } else {
Plain Text - Registered: Fri Apr 26 11:42:10 GMT 2024 - Last Modified: Thu Apr 18 01:24:38 GMT 2024 - 6K bytes - Viewed (0)