Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for mapOf (0.12 sec)

  1. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

          Challenge("Basic", mapOf("realm" to "myrealm")),
        )
      }
    
      @Test fun multipleSeparatorsBetweenChallenges() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate", "Digest,,,, Basic ,,realm=\"myrealm\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly(
          Challenge("Digest", mapOf()),
          Challenge("Basic", mapOf("realm" to "myrealm")),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HeadersTest.kt

      @Test fun ofMapThrowsOnEmptyName() {
        assertFailsWith<IllegalArgumentException> {
          mapOf("" to "OkHttp").toHeaders()
        }
      }
    
      @Test fun ofMapThrowsOnBlankName() {
        assertFailsWith<IllegalArgumentException> {
          mapOf(" " to "OkHttp").toHeaders()
        }
      }
    
      @Test fun ofMapAcceptsEmptyValue() {
        val headers = mapOf("User-Agent" to "").toHeaders()
        assertThat(headers.value(0)).isEqualTo("")
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. regression-test/build.gradle.kts

        // Make sure to use the AndroidJUnitRunner (or a sub-class) in order to hook in the JUnit 5 Test Builder
        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
        testInstrumentationRunnerArguments += mapOf(
          "notClass" to "org.conscrypt.KitKatPlatformOpenSSLSocketImplAdapter,org.bouncycastle.pqc.crypto.qtesla.QTeslaKeyEncodingTests"
        )
      }
    
      compileOptions {
        targetCompatibility(JavaVersion.VERSION_11)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Dec 23 14:46:51 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/Request.kt

        internal var tags = mapOf<KClass<*>, Any>()
    
        constructor() {
          this.method = "GET"
          this.headers = Headers.Builder()
        }
    
        internal constructor(request: Request) {
          this.url = request.url
          this.method = request.method
          this.body = request.body
          this.tags =
            when {
              request.tags.isEmpty() -> mapOf()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. cmd/iam-etcd-store.go

    	return ies.loadMappedPolicy(ctx, name, userType, isGroup, m)
    }
    
    func (ies *IAMEtcdStore) loadMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool, m *xsync.MapOf[string, MappedPolicy]) error {
    	var p MappedPolicy
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 01:29:20 UTC 2024
    - 14K bytes
    - Viewed (0)
  6. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/kotlindsl/kotlin-compiler-configuration.kt

            CommonConfigurationKeys.LANGUAGE_VERSION_SETTINGS,
            LanguageVersionSettingsImpl(
                languageVersion = LanguageVersion.KOTLIN_1_8,
                apiVersion = ApiVersion.KOTLIN_1_8,
                analysisFlags = mapOf(
                    JvmAnalysisFlags.javaTypeEnhancementState to JavaTypeEnhancementState(
                        Jsr305Settings(ReportLevel.STRICT, ReportLevel.STRICT)
                    ) { ReportLevel.STRICT },
                )
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Oct 26 19:59:57 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/CookiesTest.kt

        val androidCookieHandler: CookieHandler =
          object : CookieHandler() {
            override fun get(
              uri: URI,
              map: Map<String, List<String>>,
            ) = mapOf(
              "Cookie" to
                listOf(
                  "\$Version=\"1\"; " +
                    "a=\"android\";\$Path=\"/\";\$Domain=\"${serverUrl.host}\"; " +
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. .teamcity/src/main/kotlin/model/PerformanceTestBucketProvider.kt

            model,
            performanceTestCoverage,
            stage,
            bucketIndex,
            "Performance tests for $testProject",
            mapOf(testProject to scenarios)
        )
    }
    
    class MultipleTestProjectBucket(private val projectDurations: List<TestProjectDuration>) : PerformanceTestBucket {
        override
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Feb 19 11:22:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

        assertThat(headers.toString()).isEqualTo("header1: valué1\n")
      }
    
      // Fails on JS, ClassCastException: Illegal cast
      @Test fun ofMapThrowsOnNull() {
        assertFailsWith<NullPointerException> {
          (mapOf("User-Agent" to null) as Map<String, String>).toHeaders()
        }
      }
    
      @Test fun toMultimapGroupsHeaders() {
        val headers =
          Headers.headersOf(
            "cache-control",
            "no-cache",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. .teamcity/src/main/kotlin/configurations/StageTriggers.kt

    import model.CIBuildModel
    import model.Stage
    import model.StageName
    import model.Trigger
    import projects.StageProject
    
    val stageWithOsTriggers: Map<StageName, List<Os>> = mapOf(
        StageName.PULL_REQUEST_FEEDBACK to listOf(Os.LINUX, Os.WINDOWS),
        StageName.READY_FOR_NIGHTLY to listOf(Os.LINUX, Os.WINDOWS, Os.MACOS),
        StageName.READY_FOR_RELEASE to listOf(Os.LINUX, Os.WINDOWS, Os.MACOS),
    )
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Nov 06 08:08:13 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top