- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for parseChallenges (0.1 sec)
-
okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt
assertThat(headers.parseChallenges("WWW-Authenticate")) .isEqualTo(listOf(Challenge("Basic", expectedAuthParams))) } @Test fun separatorsBeforeFirstChallenge() { val headers = Headers.Builder() .add("WWW-Authenticate", " , , Basic realm=myrealm") .build() assertThat(headers.parseChallenges("WWW-Authenticate"))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
* ``` * * Similarly, the first line has one challenge and the second line has two challenges: * * ``` * WWW-Authenticate: Digest ,foo=bar * WWW-Authenticate: Digest ,foo * ``` */ fun Headers.parseChallenges(headerName: String): List<Challenge> { val result = mutableListOf<Challenge>() for (h in 0 until size) { if (headerName.equals(name(h), ignoreCase = true)) { val header = Buffer().writeUtf8(value(h))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Response.kt
import okhttp3.internal.commonRequest import okhttp3.internal.commonToString import okhttp3.internal.commonTrailers import okhttp3.internal.connection.Exchange import okhttp3.internal.http.parseChallenges import okio.Buffer /** * An HTTP response. Instances of this class are not immutable: the response body is a one-shot * value that may be consumed only once and then closed. All other properties are immutable. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 06 09:38:30 UTC 2024 - 15.6K bytes - Viewed (0)