Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 267 for init (0.17 sec)

  1. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingResponseBody.kt

      }
    
      override fun source(): BufferedSource {
        return delegate.source()
      }
    
      override fun toString(): String {
        return javaClass.simpleName + "(" + delegate.toString() + ")"
      }
    
      init {
        requireNotNull(delegate) { "delegate == null" }
        this.delegate = delegate
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ForwardingRequestBody.kt

      }
    
      override fun isDuplex(): Boolean {
        return delegate.isDuplex()
      }
    
      override fun toString(): String {
        return javaClass.simpleName + "(" + delegate.toString() + ")"
      }
    
      init {
        requireNotNull(delegate) { "delegate == null" }
        this.delegate = delegate
      }
    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)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       *
       * @param timeout how long to wait before giving up, in units of [unit]
       * @param unit a [TimeUnit] determining how to interpret the [timeout] parameter
       * @return the head of the request queue
       */
      @Throws(InterruptedException::class)
      fun takeRequest(
        timeout: Long,
        unit: TimeUnit,
      ): RecordedRequest? = requestQueue.poll(timeout, unit)
    
      /**
    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)
  4. okhttp/src/main/kotlin/okhttp3/Challenge.kt

            } catch (ignore: Exception) {
            }
          }
          return ISO_8859_1
        }
    
      constructor(scheme: String, realm: String) : this(scheme, singletonMap("realm", realm))
    
      init {
        val newAuthParams = mutableMapOf<String?, String>()
        for ((key, value) in authParams) {
          val newKey = key?.lowercase(US)
          newAuthParams[newKey] = value
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk9Platform.kt

              SSLContext.getInstance("TLS")
            }
        }
      }
    
      companion object {
        val isAvailable: Boolean
    
        val majorVersion = System.getProperty("java.specification.version")?.toIntOrNull()
    
        init {
          isAvailable =
            if (majorVersion != null) {
              majorVersion >= 9
            } else {
              try {
                // also present on JDK8 after build 252.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

      fun takeRequest(
        timeout: Long,
        unit: TimeUnit,
      ): RecordedRequest? {
        return delegate.takeRequest(timeout, unit)?.unwrap()
      }
    
      @JvmName("-deprecated_requestCount")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "requestCount"),
        level = DeprecationLevel.ERROR,
      )
      fun getRequestCount(): Int = delegate.requestCount
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/Exchange.kt

      ) : ForwardingSource(delegate) {
        private var bytesReceived = 0L
        private var invokeStartEvent = true
        private var completed = false
        private var closed = false
    
        init {
          if (contentLength == 0L) {
            complete(null)
          }
        }
    
        @Throws(IOException::class)
        override fun read(
          sink: Buffer,
          byteCount: Long,
        ): Long {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.2K bytes
    - Viewed (2)
  8. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

     */
    class UrlComponentEncodingTester private constructor() {
      private val encodings: MutableMap<Int, Encoding> = LinkedHashMap()
    
      private fun allAscii(encoding: Encoding) =
        apply {
          for (i in 0..127) {
            encodings[i] = encoding
          }
        }
    
      fun override(
        encoding: Encoding,
        vararg codePoints: Int,
      ) = apply {
        for (codePoint in codePoints) {
          encodings[codePoint] = encoding
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

       *
       * https://github.com/oracle/graal/issues/3008
       */
      @JvmStatic
      fun Throwable.assertSuppressed(block: (List<@JvmSuppressWildcards Throwable>) -> Unit) {
        if (isGraalVmImage) return
        block(suppressed.toList())
      }
    
      @JvmStatic
      fun threadFactory(name: String): ThreadFactory {
        return object : ThreadFactory {
          private var nextId = 1
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

    internal fun Buffer.writeCanonicalized(
      input: String,
      pos: Int,
      limit: Int,
      encodeSet: String,
      alreadyEncoded: Boolean,
      strict: Boolean,
      plusIsSpace: Boolean,
      unicodeAllowed: Boolean,
      charset: Charset?,
    ) {
      var encodedCharBuffer: Buffer? = null // Lazily allocated.
      var codePoint: Int
      var i = pos
      while (i < limit) {
        codePoint = input.codePointAt(i)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
Back to top