Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 883 for returns (0.17 sec)

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

     */
    class Address(
      uriHost: String,
      uriPort: Int,
      /** Returns the service that will be used to resolve IP addresses for hostnames. */
      @get:JvmName("dns") val dns: Dns,
      /** Returns the socket factory for new connections. */
      @get:JvmName("socketFactory") val socketFactory: SocketFactory,
      /** Returns the SSL socket factory, or null if this is not an HTTPS address. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/Dispatcher.kt

       * can return other values to test HTTP edge cases, such as unhappy socket policies or throttled
       * request bodies.
       */
      open fun peek(): MockResponse {
        return MockResponse(socketPolicy = KeepOpen)
      }
    
      /**
       * Release any resources held by this dispatcher. Any requests that are currently being dispatched
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

        }
    
        /** Returns a strategy to use assuming the request can use the network. */
        private fun computeCandidate(): CacheStrategy {
          // No cached response.
          if (cacheResponse == null) {
            return CacheStrategy(request, null)
          }
    
          // Drop the cached response if it's missing a required handshake.
          if (request.isHttps && cacheResponse.handshake == null) {
            return CacheStrategy(request, null)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  4. doc/next/6-stdlib/99-minor/unicode/utf16/44940.md

    The [RuneLen] function returns the number of 16-bit words in
    the UTF-16 encoding of the rune. It returns -1 if the rune
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 162 bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        get() {
          this.withLock {
            if (errorCode != null) {
              return false
            }
            if ((source.finished || source.closed) &&
              (sink.finished || sink.closed) &&
              hasResponseHeaders
            ) {
              return false
            }
            return true
          }
        }
    
      /** Returns true if this stream was created by this peer. */
      val isLocallyInitiated: Boolean
    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)
  6. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

        val entry = lruEntries[key] ?: return null
        val snapshot = entry.snapshot() ?: return null
    
        redundantOpCount++
        journalWriter!!.writeUtf8(READ)
          .writeByte(' '.code)
          .writeUtf8(key)
          .writeByte('\n'.code)
        if (journalRebuildRequired()) {
          cleanupQueue.schedule(cleanupTask)
        }
    
        return snapshot
      }
    
    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/test/java/okhttp3/RecordedResponse.kt

      /**
       * Asserts that the current response was redirected and returns the prior response.
       */
      fun priorResponse(): RecordedResponse {
        val priorResponse = response!!.priorResponse!!
        return RecordedResponse(priorResponse.request, priorResponse, null, null, null)
      }
    
      /**
       * Asserts that the current response used the network and returns the network response.
       */
      fun networkResponse(): RecordedResponse {
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

      }
    
      fun idleConnectionCount(): Int {
        return connections.count {
          it.withLock { it.calls.isEmpty() }
        }
      }
    
      fun connectionCount(): Int {
        return connections.size
      }
    
      /**
       * Attempts to acquire a recycled connection to [address] for [connectionUser]. Returns the connection if it
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 16.2K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/-MediaTypeCommon.kt

        parameterNamesAndValues += value
        s = parameter.range.last + 1
      }
    
      return MediaType(this, type, subtype, parameterNamesAndValues.toTypedArray())
    }
    
    /** Returns a media type for this, or null if this is not a well-formed media type. */
    fun String.commonToMediaTypeOrNull(): MediaType? {
      return try {
        commonToMediaType()
      } catch (_: IllegalArgumentException) {
        null
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/99-minor/slices/65238.md

    The [Repeat] function returns a new slice that repeats the
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 101 bytes
    - Viewed (0)
Back to top