Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 155 for fun (1.19 sec)

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

            }
          }
        }
    
        fun isConscrypt() = getPlatformSystemProperty() == CONSCRYPT_PROPERTY
    
        fun isJdk9() = getPlatformSystemProperty() == JDK9_PROPERTY
    
        fun isJdk8() = getPlatformSystemProperty() == JDK8_PROPERTY
    
        fun isJdk8Alpn() = getPlatformSystemProperty() == JDK8_ALPN_PROPERTY
    
        fun isBouncyCastle() = getPlatformSystemProperty() == BOUNCYCASTLE_PROPERTY
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/-UtilCommon.kt

    }
    
    internal fun Char.parseHexDigit(): Int =
      when (this) {
        in '0'..'9' -> this - '0'
        in 'a'..'f' -> this - 'a' + 10
        in 'A'..'F' -> this - 'A' + 10
        else -> -1
      }
    
    internal infix fun Byte.and(mask: Int): Int = toInt() and mask
    
    internal infix fun Short.and(mask: Int): Int = toInt() and mask
    
    internal infix fun Int.and(mask: Long): Long = toLong() and mask
    
    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)
  3. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

      }
    
      @Test
      fun fragmentNonAscii() {
        val url = "http://host/#Σ".toHttpUrl()
        assertThat(url.toUri().toString()).isEqualTo("http://host/#Σ")
      }
    
      @Test
      fun fragmentPercentEncodedNonAscii() {
        val url = "http://host/#%C2%80".toHttpUrl()
        assertThat(url.toUri().toString()).isEqualTo("http://host/#%C2%80")
      }
    
      @Test
      fun fragmentPercentEncodedPartialCodePoint() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

    internal inline fun Any.wait() = (this as Object).wait()
    
    @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "NOTHING_TO_INLINE")
    internal inline fun Any.notify() = (this as Object).notify()
    
    @Suppress("PLATFORM_CLASS_MAPPED_TO_KOTLIN", "NOTHING_TO_INLINE")
    internal inline fun Any.notifyAll() = (this as Object).notifyAll()
    
    internal fun <T> readFieldOrNull(
      instance: Any,
      fieldType: Class<T>,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  5. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ScopeProvider.kt

            }
    
    
            private fun DeclarationDescriptor.isDeclaredInOwner() = when (this) {
                is CallableDescriptor -> dispatchReceiverParameter?.containingDeclaration == owner
                else -> containingDeclaration == owner
            }
        }
    
        override fun getEmptyScope(): KtScope {
            return KtEmptyScope(token)
        }
    
        override fun getFileScope(fileSymbol: KtFileSymbol): KtScope {
    Plain Text
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Thu Apr 25 18:05:58 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

         * it requires that bytes have already been flushed by the server.
         */
        fun clientSourceBufferSize(): Long {
          source.request(1L)
          return source.buffer.size
        }
    
        fun processNextFrame(): Boolean {
          taskFaker.runTasks()
          return webSocket!!.processNextFrame()
        }
    
        override fun close() {
          if (closed) {
            throw AssertionError("Already closed")
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

      }
    
      @Test @Disabled
      fun headers() {
        var headers: Headers = Headers.of("", "")
        headers = Headers.of(mapOf("" to ""))
        val size: Int = headers.size()
      }
    
      @Test @Disabled
      fun httpLoggingInterceptor() {
        val interceptor = HttpLoggingInterceptor()
        val level = interceptor.getLevel()
      }
    
      @Test @Disabled
      fun httpUrl() {
        val httpUrl: HttpUrl = HttpUrl.get("")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Headers.kt

        level = DeprecationLevel.ERROR,
      )
      fun size(): Int = size
    
      /** Returns the field at `position`. */
      fun name(index: Int): String = commonName(index)
    
      /** Returns the value at `index`. */
      fun value(index: Int): String = commonValue(index)
    
      /** Returns an immutable case-insensitive set of header names. */
      fun names(): Set<String> {
        val result = TreeSet(String.CASE_INSENSITIVE_ORDER)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

      @BeforeEach
      fun setup(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun testPlatform() {
        assertTrue(Platform.isAndroid)
    
        if (Build.VERSION.SDK_INT >= 29) {
          assertTrue(Platform.get() is Android10Platform)
        } else {
          assertTrue(Platform.get() is AndroidPlatform)
        }
      }
    
      @Test
      fun testRequest() {
        assumeNetwork()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 27K bytes
    - Viewed (1)
  10. okhttp/src/main/kotlin/okhttp3/Response.kt

          this.trailersFn = response.trailersFn
        }
    
        open fun request(request: Request) = commonRequest(request)
    
        open fun protocol(protocol: Protocol) = commonProtocol(protocol)
    
        open fun code(code: Int) = commonCode(code)
    
        open fun message(message: String) = commonMessage(message)
    
        open fun handshake(handshake: Handshake?) =
          apply {
            this.handshake = handshake
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
Back to top