- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for requestBuilder (0.06 sec)
-
okhttp/src/test/java/okhttp3/CallTest.kt
} @Test fun invalidScheme() { val requestBuilder = Request.Builder() assertFailsWith<IllegalArgumentException> { requestBuilder.url("ftp://hostname/path") }.also { expected -> assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'") } } @Test fun invalidPort() { val requestBuilder = Request.Builder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
server.enqueue(MockResponse(body = "Page 2")) val requestBuilder = Request.Builder() .url(server.url("/page1")) if (method == "POST") { requestBuilder.post("ABCD".toRequestBody(null)) } else { requestBuilder.method(method, null) } val response = getResponse(requestBuilder.build()) val responseString = readAscii(response.body.byteStream(), Int.MAX_VALUE)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)