Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 25 for Breaters (0.23 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt

    import okhttp3.ExperimentalOkHttpApi
    import okio.BufferedSink
    
    /**
     * The body of a [MockResponse].
     *
     * Unlike [okhttp3.ResponseBody], this interface is designed to be implemented by writers and not
     * called by readers.
     */
    @ExperimentalOkHttpApi
    interface MockResponseBody {
      /** The length of this response in bytes, or -1 if unknown. */
      val contentLength: Long
    
      @Throws(IOException::class)
      fun writeTo(sink: BufferedSink)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

          routes = routes,
          attempt = 0,
          tunnelRequest = tunnelRequest,
          connectionSpecIndex = -1,
          isTlsFallback = false,
        )
      }
    
      /**
       * Returns a request that creates a TLS tunnel via an HTTP proxy. Everything in the tunnel request
       * is sent unencrypted to the proxy server, so tunnels include only the minimum set of headers.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_2x.md

     *  New: ConnectionSpec can now be configured to use the SSL socket's default
        cipher suites. To use, set the cipher suites to `null`.
     *  New: Support `DELETE` with a request body.
     *  New: `Headers.of(Map)` creates headers from a Map.
    
    
    ## Version 2.2.0
    
    _2014-12-30_
    
     *  **`RequestBody.contentLength()` now throws `IOException`.**
        This is a source-incompatible change. If you have code that calls
    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)
  4. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

            snapshot1.assertValue(1, "a")
            snapshot2.assertValue(1, "a")
          }
        }
      }
    
      @ParameterizedTest
      @ArgumentsSource(FileSystemParamProvider::class)
      fun `remove while reading creates zombie that is removed when read finishes`(parameters: Pair<FileSystem, Boolean>) {
        setUp(parameters.first, parameters.second)
        val afterRemoveFileContents = if (windows) "a" else null
    
        set("k1", "a", "a")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 14:55:09 GMT 2024
    - 75.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

          this.certificatePinner =
            builder.certificatePinner
              .withCertificateChainCleaner(certificateChainCleaner!!)
        }
    
        verifyClientState()
      }
    
      /**
       * Creates an [Address] of out of the provided [HttpUrl]
       * that uses this client’s DNS, TLS, and proxy configuration.
       */
      fun address(url: HttpUrl): Address {
        var useSslSocketFactory: SSLSocketFactory? = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

              fileSystem.deleteIfExists(entry.cleanFiles[t])
              fileSystem.deleteIfExists(entry.dirtyFiles[t])
            }
            i.remove()
          }
        }
      }
    
      /**
       * Creates a new journal that omits redundant information. This replaces the current journal if it
       * exists.
       */
      @Synchronized
      @Throws(IOException::class)
      internal fun rebuildJournal() {
        journalWriter?.close()
    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)
  7. okhttp/src/main/kotlin/okhttp3/EventListener.kt

       */
      open fun cacheConditionalHit(
        call: Call,
        cachedResponse: Response,
      ) {
      }
    
      fun interface Factory {
        /**
         * Creates an instance of the [EventListener] for a particular [Call]. The returned
         * [EventListener] instance will be used during the lifecycle of [call].
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      /**
       * A source that reads the incoming data frames of a stream. Although this class uses
       * synchronization to safely receive incoming data frames, it is not intended for use by multiple
       * readers.
       */
      inner class FramingSource internal constructor(
        /** Maximum number of bytes to buffer before reporting a flow control error. */
        private val maxByteCount: Long,
        /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  9. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/TlsUtil.kt

      }
    
      private fun newEmptyKeyStore(keyStoreType: String?): KeyStore {
        return KeyStore.getInstance(keyStoreType ?: KeyStore.getDefaultType()).apply {
          val inputStream: InputStream? = null // By convention, 'null' creates an empty key store.
          load(inputStream, password)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/WebSocket.kt

       * messages. This does nothing if the web socket has already been closed or canceled.
       */
      fun cancel()
    
      fun interface Factory {
        /**
         * Creates a new web socket and immediately returns it. Creating a web socket initiates an
         * asynchronous process to connect the socket. Once that succeeds or fails, `listener` will be
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
Back to top