Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for toRegex (0.04 sec)

  1. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

        }
    
        val logs = ShadowLog.getLogsForTag(AndroidPlatform.Tag)
        assertThat(logs.map { it.type }).containsOnly(Log.INFO)
        assertThat(
          logs.map {
            it.msg.replace(
              "\\d+".toRegex(),
              "",
            )
          },
        ).containsExactly(
          "--> GET http://google.com/robots.txt",
          "<-- HTTP FAILED: java.net.UnknownHostException: shortcircuit. ${request.url} (ms)",
        )
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  2. .teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt

            // experimental branch of gradle/gradle-promote
            private const val GRADLE_PROMOTE_EXPERIMENTAL_VCS_ROOT_ID = "Gradle_GradlePromoteExperimental"
    
            private val OLD_RELEASE_PATTERN = "release(\\d+)x".toRegex()
    
            fun fromDslContext(): VersionedSettingsBranch = VersionedSettingsBranch(DslContext.getParameter("branch"))
    
            private fun determineNightlyPromotionTriggerHour(branchName: String) =
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Tue Jun 17 09:57:45 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

            javaClass
              .getDeclaredField("masterSecret")
              .apply {
                isAccessible = true
              }.get(this) as? SecretKey
    
        val randomRegex = "\"random\"\\s+:\\s+\"([^\"]+)\"".toRegex()
    
        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabaseTest.kt

          var publicSuffix = buffer.readUtf8LineStrict()
          if (publicSuffix.contains("*")) {
            // A wildcard rule, let's replace the wildcard with a value.
            publicSuffix = publicSuffix.replace("\\*".toRegex(), "square")
          }
          assertThat(publicSuffixDatabase.getEffectiveTldPlusOne(publicSuffix)).isNull()
          val test = "foobar.$publicSuffix"
          assertThat(publicSuffixDatabase.getEffectiveTldPlusOne(test)).isEqualTo(test)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. okhttp/build.gradle.kts

          allJvmArgs = allJvmArgs.filter { !it.startsWith("--add-opens") }
        }
        if (name.matches("test.*UnitTest".toRegex()) && javaLauncher.get().metadata.languageVersion.asInt() < 17) {
          // Work around robolectric requirements and limitations
          // https://github.com/robolectric/robolectric/issues/10419
          filter {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 03:59:03 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        // https://tools.ietf.org/html/rfc7231#section-7.1.3
        // currently ignores a HTTP-date, and assumes any non int 0 is a delay
        if (header.matches("\\d+".toRegex())) {
          return Integer.valueOf(header)
        }
        return Integer.MAX_VALUE
      }
    
      companion object {
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cookie.kt

            return if (parsed <= 0L) Long.MIN_VALUE else parsed
          } catch (e: NumberFormatException) {
            // Check if the value is an integer (positive or negative) that's too big for a long.
            if (s.matches("-?\\d+".toRegex())) {
              return if (s.startsWith("-")) Long.MIN_VALUE else Long.MAX_VALUE
            }
            throw e
          }
        }
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        @JvmField val MAGIC = "libcore.io.DiskLruCache"
    
        @JvmField val VERSION_1 = "1"
    
        @JvmField val ANY_SEQUENCE_NUMBER: Long = -1
    
        @JvmField val LEGAL_KEY_PATTERN = "[a-z0-9_-]{1,120}".toRegex()
    
        @JvmField val CLEAN = "CLEAN"
    
        @JvmField val DIRTY = "DIRTY"
    
        @JvmField val REMOVE = "REMOVE"
    
        @JvmField val READ = "READ"
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 34.7K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

          .assertCode(200)
          .assertBody("success!")
    
        assertThat(proxySelector.failures)
          .all {
            hasSize(1)
            index(0).matches(".* Connect timed out".toRegex(RegexOption.IGNORE_CASE))
          }
      }
    
      /** https://github.com/square/okhttp/issues/4875  */
      @Test
      fun interceptorRecoversWhenRoutesExhausted() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
Back to top