- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 44 for onResponse (0.1 sec)
-
okhttp/src/main/kotlin/okhttp3/ResponseBody.kt
* may ultimately cause the application to slow down or crash. * * Both this class and [Response] implement [Closeable]. Closing a response simply * closes its response body. If you invoke [Call.execute] or implement [Callback.onResponse] you * must close this body by calling any of the following methods: * * * `Response.close()` * * `Response.body().close()` * * `Response.body().source().close()` * * `Response.body().charStream().close()`
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 10.7K bytes - Viewed (0) -
okhttp-android/src/main/kotlin/okhttp3/android/AndroidAsyncDns.kt
null, object : DnsResolver.Callback<List<InetAddress>> { override fun onAnswer( addresses: List<InetAddress>, rCode: Int, ) { callback.onResponse(hostname, addresses) } override fun onError(e: DnsResolver.DnsException) { callback.onFailure( hostname, UnknownHostException(e.message).apply {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 10:07:48 UTC 2024 - 2.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Dispatcher.kt
* Note: The time at which a [call][Call] is considered idle is different depending on whether it * was run [asynchronously][Call.enqueue] or [synchronously][Call.execute]. Asynchronous calls * become idle after the [onResponse][Callback.onResponse] or [onFailure][Callback.onFailure] * callback has returned. Synchronous calls become idle once [execute()][Call.execute] returns.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Jun 20 14:10:53 UTC 2024 - 9K bytes - Viewed (0) -
okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt
var afterCallbackOnResponse: () -> Unit = {} override fun cancel() { canceled = true } override fun enqueue(responseCallback: Callback) { responseCallback.onResponse(this, response) afterCallbackOnResponse() } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 18 01:24:38 UTC 2024 - 5.4K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt
@Volatile private var canceled = false fun connect(callFactory: Call.Factory) { call = callFactory.newCall(request).apply { enqueue(this@RealEventSource) } } override fun onResponse( call: Call, response: Response, ) { processResponse(response) } fun processResponse(response: Response) { response.use { if (!response.isSuccessful) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.2K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
var exception: Exception? = null val latch = CountDownLatch(1) // assumes an IPv4 address AndroidAsyncDns.IPv4.query( hostname, object : AsyncDns.Callback { override fun onResponse( hostname: String, addresses: List<InetAddress>, ) { allAddresses.addAll(addresses) latch.countDown() } override fun onFailure(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequest.java
} else { builder.setQuery(queryBuilder); } builder.execute(new ActionListener<SearchResponse>() { @Override public void onResponse(final SearchResponse searchResponse) { if (searchResponse.getFailedShards() > 0) { deferred.reject(new SuggesterException("Search failure. Failed shards num:" + searchResponse.getFailedShards()));
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 13.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocketChannelTest.kt
object : Callback { override fun onFailure( call: Call, e: IOException, ) { promise.completeExceptionally(e) } override fun onResponse( call: Call, response: Response, ) { promise.complete(response) } }, ) val response = promise.get(4, SECONDS)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 8K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequest.java
builder.setQuery(buildQuery()); builder.setRescorer(buildRescore(), windowSize); builder.execute(new ActionListener<SearchResponse>() { @Override public void onResponse(final SearchResponse searchResponse) { if (searchResponse.getFailedShards() > 0) { deferred.reject(new SuggesterException("Search failure. Failed shards num:" + searchResponse.getFailedShards()));
Registered: Fri Nov 08 09:08:12 UTC 2024 - Last Modified: Sat Oct 12 00:10:39 UTC 2024 - 7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/UpgradeUtil.java
final Consumer<AcknowledgedResponse> comsumer) { indicesClient.prepareDelete(index).execute(new ActionListener<AcknowledgedResponse>() { @Override public void onResponse(final AcknowledgedResponse response) { logger.info("Deleted {} index.", index); comsumer.accept(response); } @Override
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9.1K bytes - Viewed (0)