Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for _this2 (0.03 sec)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

          if (!response.isSuccessful) {
            listener.onFailure(this, null, response)
            return
          }
    
          val body = response.body
    
          if (!body.isEventStream()) {
            listener.onFailure(
              this,
              IllegalStateException("Invalid content-type: ${body.contentType()}"),
              response,
            )
            return
          }
    
          // This is a long-lived response. Cancel full-call timeouts.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  2. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt

       * Invoked when the HTTP connection has been closed normally.
       *
       * No further calls to this listener will be made.
       */
      open fun onClosed(eventSource: EventSource) {
      }
    
      /**
       * Invoked when an event source has been closed due to an error reading from or writing to the
       * network. Incoming events may have been lost. No further calls to this listener will be made.
       */
      open fun onFailure(
        eventSource: EventSource,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/UploadProgress.java

        private final ProgressListener progressListener;
        private final RequestBody delegate;
    
        public ProgressRequestBody(RequestBody delegate, ProgressListener progressListener) {
          this.delegate = delegate;
          this.progressListener = progressListener;
        }
    
        @Override
        public MediaType contentType() {
          return delegate.contentType();
        }
    
        @Override
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 4.2K bytes
    - Viewed (1)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealCall.kt

        }
    
        val exchangeFinder = this.exchangeFinder!!
        val connection = exchangeFinder.find()
        val codec = connection.newCodec(client, chain)
        val result = Exchange(this, eventListener, exchangeFinder, codec)
        this.interceptorScopedExchange = result
        this.exchange = result
        withLock {
          this.requestBodyOpen = true
          this.responseBodyOpen = true
        }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TopKSelector.java

        checkArgument(k <= Integer.MAX_VALUE / 2, "k (%s) must be <= Integer.MAX_VALUE / 2", k);
        this.buffer = (T[]) new Object[Math.multiplyExact(k, 2)];
        this.bufferSize = 0;
        this.threshold = null;
      }
    
      /**
       * Adds {@code elem} as a candidate for the top {@code k} elements. This operation takes amortized
       * O(1) time.
       */
      public void offer(@ParametricNullness T elem) {
        if (k == 0) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/Types.java

          checkNotNull(rawType);
          checkArgument(typeArguments.length == rawType.getTypeParameters().length);
          disallowPrimitiveType(typeArguments, "type parameter");
          this.ownerType = ownerType;
          this.rawType = rawType;
          this.argumentsList = JavaVersion.CURRENT.usedInGenericType(typeArguments);
        }
    
        @Override
        public Type[] getActualTypeArguments() {
          return toArray(argumentsList);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourcesHttpTest.kt

    /*
     * Copyright (C) 2018 Square, Inc.
     *
     * Licensed under the Apache License, Version 2.0 (the "License");
     * you may not use this file except in compliance with the License.
     * You may obtain a copy of the License at
     *
     *      http://www.apache.org/licenses/LICENSE-2.0
     *
     * Unless required by applicable law or agreed to in writing, software
     * distributed under the License is distributed on an "AS IS" BASIS,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 13:49:38 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. guava-gwt/pom.xml

      <name>Guava GWT compatible libs</name>
      <description>
        Guava is a suite of core and expanded libraries that include
        utility classes, Google's collections, I/O classes, and
        much more.
    
        This project includes GWT-friendly sources.
      </description>
      <properties>
        <gwt.version>2.12.2</gwt.version>
        <gwt.plugin.version>2.10.0</gwt.plugin.version>
        <gwt.logLevel>WARN</gwt.logLevel>
      </properties>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 21:35:58 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. docs/recipes.md

        ```kotlin
        if (response.responseCount >= 3) {
          return null // If we've failed 3 times, give up.
        }
        ```
    
        This above code relies on this `responseCount` extension val:
    
        ```kotlin
        val Response.responseCount: Int
          get() = generateSequence(this) { it.priorResponse }.count()
        ```
    === ":material-language-java: Java"
        ```java
          private final OkHttpClient client;
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

        assertLockHeld()
        if (executeCallCount > runCallCount) return // A thread is still starting.
    
        executeCallCount++
        backend.execute(this@TaskRunner, runnable)
      }
    
      fun newQueue(): TaskQueue {
        val name = this.withLock { nextQueueName++ }
        return TaskQueue(this, "Q$name")
      }
    
      /**
       * Returns a snapshot of queues that currently have tasks scheduled. The task runner does not
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 10.4K bytes
    - Viewed (0)
Back to top