- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for headersGet (0.28 sec)
-
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
networkLogs .assertLogEqual("--> GET $url http/1.1") .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms, unknown-length body\)""")) .assertNoMoreLogs() } @Test fun headersGet() { setLevel(Level.HEADERS) server.enqueue(MockResponse()) val response = client.newCall(request().build()).execute() response.body.close() applicationLogs .assertLogEqual("--> GET $url")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 09:14:38 UTC 2024 - 37.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersTest.kt
import assertk.assertions.isNotEqualTo import kotlin.test.Test import kotlin.test.assertFailsWith import okhttp3.Headers.Companion.headersOf import okhttp3.Headers.Companion.toHeaders class HeadersTest { @Test fun ofTrims() { val headers = headersOf("\t User-Agent \n", " \r OkHttp ") assertThat(headers.name(0)).isEqualTo("User-Agent") assertThat(headers.value(0)).isEqualTo("OkHttp") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8.6K bytes - Viewed (0)