- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 954 for already (0.17 sec)
-
samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt
route: Route?, response: Response, ): Request? { if (response.request.header("Authorization") != null) { return null // Give up, we've already attempted to authenticate. } println("Authenticating for response: $response") println("Challenges: ${response.challenges()}")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/recipes.md
```kotlin if (credential == response.request.header("Authorization")) { return null // If we already failed with these credentials, don't retry. } ``` You may also skip the retry when you’ve hit an application-defined attempt limit:
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Feb 18 08:52:22 UTC 2022 - 40.2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * Benchmark for HashMultiset.add for an already-present element. * * @author Louis Wasserman */ public class HashMultisetAddPresentBenchmark { private static final int ARRAY_MASK = 0x0ffff; private static final int ARRAY_SIZE = 0x10000;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.6K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/Authenticate.java
public Authenticate() { client = new OkHttpClient.Builder() .authenticator((route, response) -> { if (response.request().header("Authorization") != null) { return null; // Give up, we've already attempted to authenticate. } System.out.println("Authenticating for response: " + response); System.out.println("Challenges: " + response.challenges());
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Aug 12 07:26:27 UTC 2021 - 1.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/ExecutionSequencer.java
* user task -- which means that we already got past this code (or else we exited early * above)) */ // Unconditionally set; there is no risk of throwing away a queued task from another thread, // because in order for the current task to run on this executor the previous task must have // already started execution. Because each task on a TaskNonReentrantExecutor can only produce
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 01 21:46:34 UTC 2024 - 22.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java
import com.google.caliper.BeforeExperiment; import com.google.caliper.Benchmark; import java.util.ArrayList; import java.util.List; import java.util.Random; /** * Benchmark for HashMultiset.add for an already-present element. * * @author Louis Wasserman */ public class HashMultisetAddPresentBenchmark { private static final int ARRAY_MASK = 0x0ffff; private static final int ARRAY_SIZE = 0x10000;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.6K bytes - Viewed (0) -
internal/config/dns/store.go
return e.Bucket + " invalid bucket name error: " + e.Err.Error() } func (e Error) Error() string { return "dns related error: " + e.Err.Error() } // ErrBucketConflict for buckets that already exist type ErrBucketConflict Error func (e ErrBucketConflict) Error() string { return e.Bucket + " bucket conflict error: " + e.Err.Error() } // Store dns record store type Store interface {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 1.6K bytes - Viewed (0) -
internal/grid/muxclient.go
// roundtrip performs a roundtrip, returning the first response. // This cannot be used concurrently. func (m *muxClient) roundtrip(h HandlerID, req []byte) ([]byte, error) { if m.init { return nil, errors.New("mux client already used") } m.init = true m.singleResp = true msg := message{ Op: OpRequest, MuxID: m.MuxID, Handler: h, Flags: m.BaseFlags | FlagEOF, Payload: req,
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jun 07 15:51:52 UTC 2024 - 15.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt
override fun cancel() { if (canceled) return // Already canceled. canceled = true exchange?.cancel() for (plan in plansToCancel) { plan.cancel() } eventListener.canceled(this) } override fun isCanceled(): Boolean = canceled override fun execute(): Response { check(executed.compareAndSet(false, true)) { "Already Executed" } timeout.enter()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 17.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
? makeImmutable(entry, key, value) : new NonTerminalImmutableMapEntry<K, V>(key, value, keyBucketHead); table[tableIndex] = effectiveEntry; } else { // We already saw this key, and the first value we saw (going backwards) is the one we are // keeping. So we won't touch table[], but we do still want to add the existing entry that
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 16.2K bytes - Viewed (0)