Search Options

Results per page
Sort
Preferred Languages
Advance

Results 321 - 330 of 657 for fun (0.02 sec)

  1. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

      private lateinit var context: Context
      private lateinit var client: OkHttpClient
    
      @Before
      fun setUp() {
        context = ApplicationProvider.getApplicationContext<Application>()
        client =
          OkHttpClient.Builder()
            .cache(Cache(FakeFileSystem(), "/cache".toPath(), 10_000_000))
            .build()
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CookieTest.kt

    class CookieTest {
      val url = "https://example.com/".toHttpUrl()
    
      @Test fun simpleCookie() {
        val cookie = parse(url, "SID=31d4d96e407aad42")
        assertThat(cookie.toString()).isEqualTo("SID=31d4d96e407aad42; path=/")
      }
    
      @Test fun noEqualsSign() {
        assertThat(parse(url, "foo")).isNull()
        assertThat(parse(url, "foo; Path=/")).isNull()
      }
    
      @Test fun emptyName() {
        assertThat(parse(url, "=b")).isNull()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/transforms/Minify.kt

            var keepClassesByArtifact: Map<String, Set<String>>
        }
    
        @get:PathSensitive(PathSensitivity.NAME_ONLY)
        @get:InputArtifact
        abstract val artifact: Provider<FileSystemLocation>
    
        override fun transform(outputs: TransformOutputs) {
            for (entry in parameters.keepClassesByArtifact) {
                val fileName = artifact.get().asFile.name
                if (fileName.startsWith(entry.key)) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  4. mockwebserver-junit4/api/mockwebserver3-junit4.api

    public final class mockwebserver3/junit4/MockWebServerRule : org/junit/rules/ExternalResource {
    	public static final field Companion Lmockwebserver3/junit4/MockWebServerRule$Companion;
    	public fun <init> ()V
    	public final fun getServer ()Lmockwebserver3/MockWebServer;
    }
    
    public final class mockwebserver3/junit4/MockWebServerRule$Companion {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Feb 26 19:17:33 UTC 2022
    - 346 bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

            override fun isOneShot(): Boolean = true
    
            override fun writeTo(sink: BufferedSink) {
              FileInputStream(this@toRequestBody).use {
                sink.buffer.writeAll(it.source())
              }
            }
          }
        }
    
        /** Returns a new request body that transmits this. */
        @JvmOverloads
        @JvmStatic
        @JvmName("create")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 25 14:41:37 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  6. 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
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon May 13 13:42:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

        private inner class PartSource : Source {
          private val timeout = Timeout()
    
          override fun close() {
            if (currentPart == this) {
              currentPart = null
            }
          }
    
          override fun read(
            sink: Buffer,
            byteCount: Long,
          ): Long {
            require(byteCount >= 0L) { "byteCount < 0: $byteCount" }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/InterceptorTest.kt

            override fun contentType() = original.contentType()
    
            override fun contentLength() = original.contentLength()
    
            override fun source() = uppercase(original.source()).buffer()
          }
        }
    
        private fun uppercase(original: Source): Source {
          return object : ForwardingSource(original) {
            override fun read(
              sink: Buffer,
              byteCount: Long,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Jan 14 10:20:09 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/AutobahnTester.kt

            }
    
            override fun onMessage(
              webSocket: WebSocket,
              bytes: ByteString,
            ) {
              webSocket.send(bytes)
            }
    
            override fun onMessage(
              webSocket: WebSocket,
              text: String,
            ) {
              webSocket.send(text)
            }
    
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.collect-failed-tasks.gradle.kts

        override val collectedInformation: Serializable = failedTaskPaths
    
        override fun shouldInclude(taskPath: String): Boolean {
            // https://github.com/gradle/gradle/issues/21351
            return super.shouldInclude(taskPath) || taskPath.contains("detekt")
        }
    
        override fun action(taskPath: String, taskResult: TaskOperationResult) {
            if (taskResult is TaskFailureResult) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jun 20 08:07:01 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top