Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 657 for fun (0.07 sec)

  1. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

         */
        fun addInformationalResponse(response: MockResponse) =
          apply {
            informationalResponses += response
          }
    
        fun add100Continue() =
          apply {
            addInformationalResponse(MockResponse(code = 100))
          }
    
        public override fun clone(): Builder = build().newBuilder()
    
        fun build(): MockResponse = MockResponse(this)
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. okhttp-coroutines/src/test/kotlin/okhttp3/coroutines/ExecuteAsyncTest.kt

            .message("OK")
            .code(200)
            .body(
              object : ResponseBody() {
                override fun contentType() = null
    
                override fun contentLength() = -1L
    
                override fun source() =
                  object : ForwardingSource(Buffer()) {
                    override fun close() {
                      responseClosed = true
                    }
                  }.buffer()
              },
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:24:38 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerAdapter.kt

      fun withExplicitBox(
        tagClass: Int = DerHeader.TAG_CLASS_CONTEXT_SPECIFIC,
        tag: Long,
        forceConstructed: Boolean? = null,
      ): BasicDerAdapter<T> {
        val codec =
          object : BasicDerAdapter.Codec<T> {
            override fun decode(reader: DerReader): T = fromDer(reader)
    
            override fun encode(
              writer: DerWriter,
              value: T,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

      }
    
      @Test fun `empty source`() {
        val parts =
          MultipartReader(
            boundary = "simple boundary",
            source = Buffer(),
          )
    
        assertFailsWith<EOFException> {
          parts.nextPart()
        }
      }
    
      /** Confirm that [MultipartBody] and [MultipartReader] can work together. */
      @Test fun `multipart round trip`() {
        val body =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. okhttp-android/api/okhttp-android.api

    	public fun <init> (Lokhttp3/AsyncDns$DnsClass;Landroid/net/Network;)V
    	public synthetic fun <init> (Lokhttp3/AsyncDns$DnsClass;Landroid/net/Network;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
    	public fun query (Ljava/lang/String;Lokhttp3/AsyncDns$Callback;)V
    }
    
    public final class okhttp3/android/AndroidAsyncDns$Companion {
    	public final fun getIPv4 ()Lokhttp3/android/AndroidAsyncDns;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. .teamcity/src/main/kotlin/common/VersionedSettingsBranch.kt

            get() = branchName == EXPERIMENTAL_BRANCH
    
        fun vcsRootId() = DslContext.settingsRoot.id.toString()
    
        fun promoteNightlyTaskName() = nightlyTaskName("promote")
        fun prepNightlyTaskName() = nightlyTaskName("prep")
    
        fun promoteMilestoneTaskName(): String = when {
            isRelease -> "promoteReleaseMilestone"
            else -> "promoteMilestone"
        }
    
        fun promoteFinalReleaseTaskName(): String = when {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 26 12:59:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun connectionsAreReused() {
        server.enqueue(MockResponse(body = "a"))
        server.enqueue(MockResponse(body = "b"))
        val request = Request(server.url("/"))
        assertConnectionReused(request, request)
      }
    
      @Test
      fun connectionsAreReusedForPosts() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt

      private fun createNewCache() {
        createNewCacheWithSize(Int.MAX_VALUE)
      }
    
      private fun createNewCacheWithSize(maxSize: Int) {
        cache =
          DiskLruCache(filesystem, cacheDir, appVersion, 2, maxSize.toLong(), taskRunner).also {
            toClose.add(it)
          }
        synchronized(cache) { cache.initialize() }
      }
    
      fun setUp(
        baseFilesystem: FileSystem,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 75.8K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

      private var file: File? = null
      private var randomAccessFile: RandomAccessFile? = null
    
      @BeforeEach
      fun setUp() {
        file = File(tempDir, "test")
        randomAccessFile = RandomAccessFile(file, "rw")
      }
    
      @AfterEach
      fun tearDown() {
        randomAccessFile!!.close()
      }
    
      @Test
      fun read() {
        write("Hello, World".encodeUtf8())
        val operator =
          FileOperator(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. 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()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
Back to top