Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for Sellers (0.17 sec)

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

        thread.start();
      }
    
      /**
       * This request body makes it possible for another thread to stream data to the uploading request.
       * This is potentially useful for posting live event streams like video capture. Callers should
       * write to {@code sink()} and close it to complete the post.
       */
      static final class PipeBody extends RequestBody {
        private final Pipe pipe = new Pipe(8192);
    Java
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Jul 06 03:18:15 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

    import okio.Buffer
    import okio.BufferedSink
    import okio.BufferedSource
    import okio.Sink
    import okio.Timeout
    import okio.buffer
    import okio.sink
    import okio.source
    
    /**
     * A scriptable web server. Callers supply canned responses and the server replays them upon request
     * in sequence.
     */
    @ExperimentalOkHttpApi
    class MockWebServer : Closeable {
      private val taskRunnerBackend =
        TaskRunner.RealBackend(
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     *
     * This class is tolerant of some I/O errors. If files are missing from the filesystem, the
     * corresponding entries will be dropped from the cache. If an error occurs while writing a cache
     * value, the edit will fail silently. Callers should handle other problems by catching
     * `IOException` and responding appropriately.
     *
     * @constructor Create a cache which will reside in [directory]. This cache is lazily initialized on
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

      fun metadata(): ByteString = metadata
    
      /**
       * Returns a new source that returns the same bytes as upstream. Returns null if this relay has
       * been closed and no further sources are possible. In that case callers should retry after
       * building a new relay with [.read].
       */
      fun newSource(): Source? {
        synchronized(this@Relay) {
          if (file == null) return null
          sourceCount++
        }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttp.kt

       * project's build file due to the dependency resolution features of your build tool.
       *
       * [semver]: https://semver.org
       */
      @Suppress("MayBeConstant") // Non-const so external callers get the runtime version.
      @JvmField
      val VERSION = CONST_VERSION
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.6K bytes
    - Viewed (1)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

        }
    
        /**
         * Sets the level and returns this.
         *
         * This was deprecated in OkHttp 4.0 in favor of the [level] val. In OkHttp 4.3 it is
         * un-deprecated because Java callers can't chain when assigning Kotlin vals. (The getter remains
         * deprecated).
         */
        fun setLevel(level: Level) =
          apply {
            this.level = level
          }
    
        @JvmName("-deprecated_level")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  7. docs/changelogs/changelog_4x.md

        to the uncaught exception handler for reporting and recovery.
    
     *  Fix: Un-deprecate `MockResponse.setHeaders()` and other setters. These were deprecated in OkHttp
        4.0 but that broke method chaining for Java callers.
    
     *  Fix: Don't crash on HTTP/2 HEAD requests when the `Content-Length` header is present but is not
        consistent with the length of the response body.
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

          .isEqualTo("http://host/?a=%21%24%28%29%2C%2F%3A%3B%3F%40%5B%5D%5C%5E%60%7B%7C%7D%7E")
        assertThat(url.queryParameter("a")).isEqualTo("!$(),/:;?@[]\\^`{|}~")
      }
    
      /**
       * When callers use `addEncodedQueryParameter()` we only encode what's strictly required. We
       * retain the encoded (or non-encoded) state of the input.
       */
      @Test
      fun queryCharactersNotReencodedWhenComposedWithAddEncoded() {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  9. okhttp-urlconnection/src/main/kotlin/okhttp3/JavaNetCookieJar.kt

     * A cookie jar that delegates to a [java.net.CookieHandler].
     *
     * This implementation delegates everything to [okhttp3.java.net.cookiejar.JavaNetCookieJar], which
     * conforms to the package-naming limitations of JPMS.
     *
     * Callers should prefer to use [okhttp3.java.net.cookiejar.JavaNetCookieJar] directly.
     */
    class JavaNetCookieJar private constructor(
      delegate: okhttp3.java.net.cookiejar.JavaNetCookieJar,
    ) : CookieJar by delegate {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  10. docs/changelogs/upgrading_to_okhttp_4.md

    OkHttp 3.x. You can use an OkHttp 4.x .jar file with applications or libraries built for OkHttp 3.x.
    
    OkHttp is **not** source-compatible for Kotlin callers, but upgrading should be automatic thanks to
    Kotlin’s powerful deprecation features. Most developers should be able to use IntelliJ’s _Code
    Cleanup_ for a safe and fast upgrade.
    
    
    Backwards-Incompatible Changes
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 16:58:16 GMT 2022
    - 10.9K bytes
    - Viewed (0)
Back to top