- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for headersGet (0.06 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) -
native-image-tests/src/main/resources/testlist.txt
okhttp3.ConnectionReuseTest okhttp3.ConnectionSpecTest okhttp3.CookieTest okhttp3.DispatcherTest okhttp3.DuplexTest okhttp3.EventListenerTest okhttp3.FormBodyTest okhttp3.HandshakeTest okhttp3.HeadersKotlinTest okhttp3.HeadersTest okhttp3.HttpUrlTest okhttp3.InsecureForHostTest okhttp3.InterceptorTest okhttp3.KotlinDeprecationErrorTest okhttp3.KotlinSourceModernTest okhttp3.MediaTypeGetTest okhttp3.MediaTypeTest okhttp3.MultipartBodyTest
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu May 11 14:48:57 UTC 2023 - 2.8K bytes - Viewed (0)