Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for progress (0.41 sec)

  1. samples/guide/src/main/java/okhttp3/recipes/Progress.java

    import okhttp3.Request;
    import okhttp3.Response;
    import okhttp3.ResponseBody;
    import okio.Buffer;
    import okio.BufferedSource;
    import okio.ForwardingSource;
    import okio.Okio;
    import okio.Source;
    
    public final class Progress {
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 3.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

     * blast radius possible. If an HTTP/2 stream is active, canceling will cancel that stream but not
     * the other streams sharing its connection. But if the TLS handshake is still in progress then
     * canceling may break the entire connection.
     */
    class RealCall(
      val client: OkHttpClient,
      /** The application's original request unadulterated by redirects or auth headers. */
      val originalRequest: Request,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
  3. docs/changelogs/changelog_4x.md

     *  Fix: Immediately update the connection's flow control window instead of waiting for the
        receiving stream to process it.
    
        This change may increase OkHttp's memory use for applications that make many concurrent HTTP
        calls and that can receive data faster than they can process it. Previously, OkHttp limited
        HTTP/2 to 16 MiB of unacknowledged data per connection. With this fix there is a limit of 16 MiB
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp-sse/src/main/kotlin/okhttp3/sse/EventSource.kt

       */
      fun cancel()
    
      fun interface Factory {
        /**
         * Creates a new event source and immediately returns it. Creating an event source initiates an
         * asynchronous process to connect the socket. Once that succeeds or fails, `listener` will be
         * notified. The caller must cancel the returned event source when it is no longer in use.
         */
        fun newEventSource(
          request: Request,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt

      interface Callback {
        fun onEvent(
          id: String?,
          type: String?,
          data: String,
        )
    
        fun onRetryChange(timeMs: Long)
      }
    
      /**
       * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the
       * data section was empty. Any number of calls to [Callback.onRetryChange] may occur while
       * processing an event.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

       * Use this for EXPLICIT tag types:
       *
       * ```
       * [5] EXPLICIT UTF8String
       * ```
       *
       * @param forceConstructed non-null to set the constructed bit to the specified value, even if the
       *     writing process sets something else. This is used to encode SEQUENCES in values that are
       *     declared to have non-constructed values, like OCTET STRING values.
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        if (journalRebuildRequired()) {
          cleanupQueue.schedule(cleanupTask)
        }
    
        return snapshot
      }
    
      /** Returns an editor for the entry named [key], or null if another edit is in progress. */
      @Synchronized
      @Throws(IOException::class)
      @JvmOverloads
      fun edit(
        key: String,
        expectedSequenceNumber: Long = ANY_SEQUENCE_NUMBER,
      ): Editor? {
        initialize()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

    logFile = File("/tmp/key.log"), tlsVersions = tlsVersions, launch = launch)`
     * 3. Register with `client.eventListenerFactory(eventListenerFactory)`
     * 4. Launch wireshark if not done externally `val process = eventListenerFactory.launchWireShark()`
     */
    @SuppressSignatureCheck
    class WireSharkListenerFactory(
      private val logFile: File,
      private val tlsVersions: List<TlsVersion>,
      private val launch: Launch? = null,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  9. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketReader.kt

        fun onReadPing(payload: ByteString)
    
        fun onReadPong(payload: ByteString)
    
        fun onReadClose(
          code: Int,
          reason: String,
        )
      }
    
      /**
       * Process the next protocol frame.
       *
       *  * If it is a control frame this will result in a single call to [FrameCallback].
       *  * If it is a message frame this will result in a single call to [FrameCallback.onReadMessage].
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  10. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt

      private val bytesLeft: Long
        get() = if (limit == -1L) -1L else (limit - byteCount)
    
      fun hasNext(): Boolean = peekHeader() != null
    
      /**
       * Returns the next header to process unless this scope is exhausted.
       *
       * This returns null if:
       *
       *  * The stream is exhausted.
       *  * We've read all of the bytes of an object whose length is known.
    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)
Back to top