Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for usernameAndPassword (0.22 sec)

  1. okhttp/src/main/kotlin/okhttp3/Credentials.kt

      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
        val encoded = usernameAndPassword.encode(charset).base64()
        return "Basic $encoded"
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        assertThat(httpUrl.password).isEqualTo("pass1@bar:pass2")
        assertThat(httpUrl).isEqualTo(parse("http://foo:pass1%40bar%3Apass2@baz/path"))
      }
    
      @Test
      fun usernameAndPassword() {
        assertThat(parse("http://username:password@host/path"))
          .isEqualTo(parse("http://username:password@host/path"))
        assertThat(parse("http://username:@host/path"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
Back to top