- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for regex (0.8 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt
import okio.Closeable import okio.FileNotFoundException import okio.FileSystem import okio.IOException import okio.Options import okio.Path import okio.use // TODO: migrate callers to [Regex.matchAt] when that API is not experimental. internal fun Regex.matchAtPolyfill( input: CharSequence, index: Int, ): MatchResult? { val candidate = find(input, index) ?: return null
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt
assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip") assertThat(recorded.headers["Connection"]).isNull() assertThat(recorded.headers["User-Agent"]!!).matches(Regex("Jetty/.*")) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/OkHttpClientTest.kt
assertThat(recorded.headers["Accept-Encoding"]).isEqualTo("gzip") assertThat(recorded.headers["Connection"]).isEqualTo("Keep-Alive") assertThat(recorded.headers["User-Agent"]!!).matches(Regex("okhttp/.*")) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.8K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliBombTest.kt
val uncompressed = uncompress(response) assertFailure { uncompressed.body.string() }.isInstanceOf<IOException>() .message() .isNotNull() .matches( Regex( "decompression bomb\\? outputByteCount=\\d+, inputByteCount=\\d+ exceeds max ratio of 100", ), ) } /** Returns a ByteString that expands to 10 GiB when Brotli-decompressed. */
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 29 22:50:20 GMT 2024 - 2.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketReaderTest.kt
while (!data.exhausted()) { assertFailsWith<ProtocolException> { clientReader.processNextFrame() }.also { expected -> assertThat(expected.message!!) .matches(Regex("Code \\d+ is reserved and may not be used.")) } count++ } assertThat(count).isEqualTo(1988) } @Test fun clientWithCompressionCannotBeUsedAfterClose() {
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) -
okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt
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) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
cache.edit(key) }.also { expected -> assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"") } assertFailsWith<IllegalArgumentException> { key = "has_CR\r" cache.edit(key) }.also { expected -> assertThat(expected.message).isEqualTo("keys must match regex [a-z0-9_-]{1,120}: \"$key\"") } assertFailsWith<IllegalArgumentException> {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
gradle/wrapper/gradle-wrapper.jar
CommandLineParser$ParserState onArgument(String); public final CommandLineParser$ParserState onComplete(); } org/gradle/cli/CommandLineParser.class package org.gradle.cli; public final synchronized class CommandLineParser { public static final java.util.regex.Pattern OPTION_NAME_PATTERN; public final java.util.HashMap optionsByString; public boolean allowUnknownOptions; public void CommandLineParser(); static void <clinit>(); public final transient CommandLineOption option(String[]); } org/gradle/cli/P...
Archive - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Dec 24 09:00:26 GMT 2023 - 42.4K bytes - Viewed (0) -
okhttp-android/src/main/baseline-prof.txt
HSPLkotlin/text/MatcherMatchResult$groups$1;-><init>(Lkotlin/text/MatcherMatchResult;)V HSPLkotlin/text/MatcherMatchResult;-><init>(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)V HSPLkotlin/text/MatcherMatchResult;->getRange()Lkotlin/ranges/IntRange; HSPLkotlin/text/Regex;-><init>(Ljava/lang/String;)V HSPLkotlin/text/Regex;->matches(Ljava/lang/CharSequence;)Z HSPLkotlin/text/StringsKt__StringNumberConversionsKt;->toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Mar 21 11:22:00 GMT 2022 - 127.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
import okio.Source import okio.blackholeSink import okio.buffer /** * A cache that uses a bounded amount of space on a filesystem. Each cache entry has a string key * and a fixed number of values. Each key must match the regex `[a-z0-9_-]{1,64}`. Values are byte * sequences, accessible as streams or files. Each value must be between `0` and `Int.MAX_VALUE` * bytes in length. *
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)