- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for malformedUrlThrowsUnknownHostException (0.13 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
.dns(FakeDns()) .build() assertFailsWith<IOException> { getResponse(Request("http://host.unlikelytld".toHttpUrl())) } } @Test fun malformedUrlThrowsUnknownHostException() { assertFailsWith<IOException> { getResponse(Request("http://-/foo.html".toHttpUrl())) } } // The request should work once and then fail. @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0)