Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 84 for Number (0.16 sec)

  1. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

            error("unreachable") // TODO(jwilson): fix intersectWith() to return T.
          }
    
          override fun timeout(): Timeout = timeout
        }
    
        /**
         * Returns a value in [0..maxByteCount] with the number of bytes that can be read from [source] in
         * the current part. If this returns 0 the current part is exhausted; otherwise it has at least
         * one byte left to read.
         */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      /**
       * True if this task faker has ever had multiple tasks scheduled to run concurrently. Guarded by
       * [TaskRunner.lock].
       */
      var isParallel = false
    
      /** Number of calls to [TaskRunner.Backend.execute]. Guarded by [TaskRunner.lock]. */
      var executeCallCount = 0
    
      /** Guarded by [taskRunner]. */
      var nanoTime = 0L
        private set
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

          val maxStaleSecondsLong = timeUnit.toSeconds(maxStale.toLong())
          this.maxStaleSeconds = maxStaleSecondsLong.commonClampToInt()
        }
    
        /**
         * Sets the minimum number of seconds that a response will continue to be fresh for. If the
         * response will be stale when [minFresh] have elapsed, the cached response will not be used and
         * a network request will be made.
         *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

    abstract class ResponseBody : Closeable {
      /** Multiple calls to [charStream] must return the same instance. */
      private var reader: Reader? = null
    
      abstract fun contentType(): MediaType?
    
      /**
       * Returns the number of bytes in that will returned by [bytes], or [byteStream], or -1 if
       * unknown.
       */
      abstract fun contentLength(): Long
    
      fun byteStream(): InputStream = source().inputStream()
    
    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 (0)
  5. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

          val passwordStart = url.indexOf(':', scheme.length + 3) + 1
          val passwordEnd = url.indexOf('@')
          return url.substring(passwordStart, passwordEnd)
        }
    
      /**
       * The number of segments in this URL's path. This is also the number of slashes in this URL's
       * path, like 3 in `http://host/a/b/c`. This is always at least 1.
       *
       * | URL                  | `pathSize()` |
       * | :------------------- | :----------- |
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
  6. okhttp/src/main/kotlin/okhttp3/FormBody.kt

      encodedValues: List<String>,
    ) : RequestBody() {
      private val encodedNames: List<String> = encodedNames.toImmutableList()
      private val encodedValues: List<String> = encodedValues.toImmutableList()
    
      /** The number of key-value pairs in this form-encoded body. */
      @get:JvmName("size")
      val size: Int
        get() = encodedNames.size
    
      @JvmName("-deprecated_size")
      @Deprecated(
        message = "moved to val",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

      /** The bytes consumed and acknowledged by the application. */
      val readBytes: WindowCounter = WindowCounter(streamId = 0)
    
      /** The total number of bytes produced by the application. */
      var writeBytesTotal = 0L
        private set
    
      /** The total number of bytes permitted to be produced according to `WINDOW_UPDATE` frames. */
      var writeBytesMaximum: Long = peerSettings.initialWindowSize.toLong()
        private set
    
    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. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

        throw SSLPeerUnverifiedException("Certificate chain too long: $result")
      }
    
      /**
       * Returns true if [toVerify] was signed by [signingCert]'s public key.
       *
       * @param minIntermediates the minimum number of intermediate certificates in [signingCert]. This
       *     is -1 if signing cert is a lone self-signed certificate.
       */
      private fun verifySignature(
        toVerify: X509Certificate,
        signingCert: X509Certificate,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  9. gradlew

            fi
            # Roll the args list around exactly as many times as the number of
            # args, so each arg winds up back in the position where it started, but
            # possibly modified.
            #
            # NB: a `for` loop captures its iteration list before it begins, so
            # changing the positional parameters here affects neither the number of
            # iterations, nor the values presented in `arg`.
    Shell Script
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 24 09:00:26 GMT 2023
    - 8.5K bytes
    - Viewed (0)
  10. samples/guide/src/main/java/okhttp3/recipes/Progress.java

            long totalBytesRead = 0L;
    
            @Override public long read(Buffer sink, long byteCount) throws IOException {
              long bytesRead = super.read(sink, byteCount);
              // read() returns the number of bytes read, or -1 if this source is exhausted.
              totalBytesRead += bytesRead != -1 ? bytesRead : 0;
              progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1);
    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)
Back to top