- Sort Score
- Result 10 results
- Languages All
Results 1221 - 1230 of 3,823 for code (0.02 sec)
-
samples/slack/src/main/java/okhttp3/slack/RtmSession.java
@Override public void onMessage(WebSocket webSocket, String text) { System.out.println("onMessage: " + text); } @Override public void onClosing(WebSocket webSocket, int code, String reason) { webSocket.close(1000, null); System.out.println("onClose (" + code + "): " + reason); } @Override public void onFailure(WebSocket webSocket, Throwable t, Response response) { // TODO(jwilson): can I read the response body? Do I have to?
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Nov 19 20:16:58 UTC 2016 - 2.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestPlatform.java
assertFalse(Thread.currentThread().isInterrupted()); } static void clearInterrupt() { Thread.interrupted(); } /** * Retrieves the result of a {@code Future} known to be done but uses the {@code get(long, * TimeUnit)} overload in order to test that method. */ static <V> V getDoneFromTimeoutOverload(Future<V> future) throws ExecutionException {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 2.6K bytes - Viewed (0) -
src/archive/zip/example_test.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package zip_test import ( "archive/zip" "bytes" "compress/flate" "fmt" "io" "log" "os" ) func ExampleWriter() { // Create a buffer to write our archive to. buf := new(bytes.Buffer) // Create a new zip archive. w := zip.NewWriter(buf)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jan 27 00:22:03 UTC 2016 - 2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java
* with {@code FeatureSpecificTestSuiteBuilder.suppressing()} until <a * href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6409434">Sun bug 6409434</a> is fixed. * It's unclear whether nulls were to be permitted or forbidden, but presumably the eventual fix * will be to permit them, as it seems more likely that code would depend on that behavior than on
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 5.2K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
call.execute().use { response -> assertThat(response.code).isEqualTo(200) } } @Test fun testRequestExternal() { assumeNetwork() val call = client.newCall(Request("https://google.com/robots.txt".toHttpUrl())) call.execute().use { response -> assertThat(response.code).isEqualTo(200) } } @Test fun testRequestInvalid() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/StandardRowSortedTable.java
* * <p>This method returns a {@link SortedSet}, instead of the {@code Set} specified in the {@link * Table} interface. */ @Override public SortedSet<R> rowKeySet() { return (SortedSet<R>) rowMap().keySet(); } /** * {@inheritDoc} * * <p>This method returns a {@link SortedMap}, instead of the {@code Map} specified in the {@link * Table} interface. */ @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Jul 15 15:41:16 UTC 2021 - 4.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
.protocol(statusLine.protocol) .code(statusLine.code) .message(statusLine.message) .headers(headersReader.readHeaders()) .trailers { error("trailers not available") } return when { expectContinue && statusLine.code == HTTP_CONTINUE -> { null } statusLine.code == HTTP_CONTINUE -> { state = STATE_READ_RESPONSE_HEADERS
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractSortedKeySortedSetMultimap.java
import org.checkerframework.checker.nullness.qual.Nullable; /** * Basic implementation of a {@link SortedSetMultimap} with a sorted key set. * * <p>This superclass allows {@code TreeMultimap} to override methods to return navigable set and * map types in non-GWT only, while GWT code will inherit the SortedMap/SortedSet overrides. * * @author Louis Wasserman */ @GwtCompatible @ElementTypesAreNonnullByDefault
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 15 21:08:00 UTC 2021 - 1.8K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/classes-as-dependencies.md
//// But declaring the type is encouraged as that way your editor will know what will be passed as the parameter `commons`, and then it can help you with code completion, type checks, etc: <img src="/img/tutorial/dependencies/image02.png"> ## Shortcut But you see that we are having some code repetition here, writing `CommonQueryParams` twice: //// tab | Python 3.8+ ```Python
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 11.1K bytes - Viewed (0) -
build-logic-commons/module-identity/build.gradle.kts
group = "gradlebuild" dependencies { api(platform(projects.buildPlatform)) implementation(projects.basics) implementation("com.google.code.gson:gson")
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Tue Sep 17 10:11:26 UTC 2024 - 292 bytes - Viewed (0)