Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Sellers (0.8 sec)

  1. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  2. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  3. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    import okio.Closeable
    import okio.FileNotFoundException
    import okio.FileSystem
    import okio.IOException
    import okio.Options
    import okio.Path
    import okio.use
    
    // TODO: migrate callers to [Regex.matchAt] when that API is not experimental.
    internal fun Regex.matchAtPolyfill(
      input: CharSequence,
      index: Int,
    ): MatchResult? {
      val candidate = find(input, index) ?: return null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/InterceptorTest.kt

      @Test
      fun networkInterceptorThrowsRuntimeExceptionSynchronous() {
        interceptorThrowsRuntimeExceptionSynchronous(true)
      }
    
      /**
       * When an interceptor throws an unexpected exception, synchronous callers can catch it and deal
       * with it.
       */
      private fun interceptorThrowsRuntimeExceptionSynchronous(network: Boolean) {
        addInterceptor(network) { chain: Interceptor.Chain? -> throw RuntimeException("boom!") }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/Cookie.kt

       *    value.
       */
      @get:JvmName("sameSite")
      val sameSite: String?,
    ) {
      /**
       * Returns true if this cookie should be included on a request to [url]. In addition to this
       * check callers should also confirm that this cookie has not expired.
       */
      fun matches(url: HttpUrl): Boolean {
        val domainMatch =
          if (hostOnly) {
            url.host == domain
          } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      internal fun writeHeaders(
        streamId: Int,
        outFinished: Boolean,
        alternating: List<Header>,
      ) {
        writer.headers(outFinished, streamId, alternating)
      }
    
      /**
       * Callers of this method are not thread safe, and sometimes on application threads. Most often,
       * this method will be called to send a buffer worth of data to the peer.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_2x.md

     *  Fix: Don't re-encode `+` as `%20` in encoded URL query strings. OkHttp
        prefers `%20` when doing its own encoding, but will retain `+` when that is
        provided.
     *  Fix: Enforce that callers call `WebSocket.close()` on IO errors. Error
        handling in WebSockets is significantly improved.
     *  Fix: Don't use SPDY/3 style header concatenation for HTTP/2 request headers.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  9. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  10. 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 May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
Back to top