- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 174 for url (0.14 sec)
-
okhttp/src/test/java/okhttp3/RequestTest.kt
assertThat(builtRequestWithoutCache.url).isEqualTo( "http://localhost/api/foo".toHttpUrl(), ) val requestWithCache = Request.Builder() .url("http://localhost/api") .build() // cache url object requestWithCache.url val builtRequestWithCache = requestWithCache.newBuilder() .url("http://localhost/api/foo")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
if (chain.request().url.encodedPath == "/b") { val requestA = Request.Builder() .url(server.url("/a")) .build() try { val callbackA = RecordingCallback() client.newCall(requestA).enqueue(callbackA) callbackA.await(requestA.url).assertBody("a") } catch (e: Exception) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 27.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Request.kt
} open fun url(url: HttpUrl): Builder = apply { this.url = url } /** * Sets the URL target of this request. * * @throws IllegalArgumentException if [url] is not a valid HTTP or HTTPS URL. Avoid this * exception by calling [HttpUrl.parse]; it returns null for invalid URLs. */ open fun url(url: String): Builder {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WholeOperationTimeoutTest.kt
fun defaultConfigIsNoTimeout() { val request = Request.Builder() .url(server.url("/")) .build() val call = client.newCall(request) assertThat(call.timeout().timeoutNanos()).isEqualTo(0) } @Test fun configureClientDefault() { val request = Request.Builder() .url(server.url("/")) .build() val timeoutClient = client.newBuilder()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/LoggingEventListenerTest.kt
.assertLogMatch(Regex("""cacheConditionalHit: Response\{protocol=h2, code=200, message=, url=$url\}""")) .assertLogMatch(Regex("""cacheHit: Response\{protocol=h2, code=200, message=, url=$url\}""")) .assertLogMatch(Regex("""cacheMiss""")) .assertLogMatch(Regex("""satisfactionFailure: Response\{protocol=h2, code=200, message=, url=$url\}""")) .assertNoMoreLogs() } private fun request(): Request.Builder {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 10.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/FastFallbackTest.kt
.connectTimeout(60, TimeUnit.SECONDS) // Deliberately exacerbate slow fallbacks. .dns { dnsResults } .fastFallback(true) .build() url = serverIpv4.url("/") .newBuilder() .host("localhost") .build() } @AfterEach internal fun tearDown() { serverIpv4.shutdown() serverIpv6.shutdown() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookieTest.kt
assertThat(parse(url, "ab=c\u0009d")).isNull() assertThat(parse(url, "a\u001fb=cd")).isNull() assertThat(parse(url, "ab=c\u001fd")).isNull() assertThat(parse(url, "a\u007fb=cd")).isNull() assertThat(parse(url, "ab=c\u007fd")).isNull() assertThat(parse(url, "a\u0080b=cd")).isNull() assertThat(parse(url, "ab=c\u0080d")).isNull() assertThat(parse(url, "a\u00ffb=cd")).isNull() assertThat(parse(url, "ab=c\u00ffd")).isNull()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 24.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt
val interceptor = HttpLoggingInterceptor() val level = interceptor.getLevel() } @Test @Disabled fun httpUrl() { val httpUrl: HttpUrl = HttpUrl.get("") val url: URL = httpUrl.url() val uri: URI = httpUrl.uri() val scheme: String = httpUrl.scheme() val encodedUsername: String = httpUrl.encodedUsername() val username: String = httpUrl.username()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DispatcherTest.kt
} } thread.start() return thread } private fun newRequest(url: String): Request { return Request.Builder().url(url).build() } private fun newRequest( url: String, tag: String, ): Request { return Request.Builder().url(url).tag(tag).build() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Apr 05 03:30:42 GMT 2024 - 12.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
.build() } @Test fun http2OneBadHostOneGoodNoRetryOnConnectionFailure() { enableProtocol(Protocol.HTTP_2) val request = Request(server1.url("/")) server1.enqueue(refusedStream) server2.enqueue(bodyResponse) dns[server1.hostName] = listOf(ipv6, ipv4) socketFactory[ipv6] = server1.inetSocketAddress
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 11.9K bytes - Viewed (0)