Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 291 for ktlint (0.07 sec)

  1. docs/features/caching.md

    which is designed to persist between app restarts.
    
    ```kotlin
    cache.delete()
    ```
     
    ## Pruning the Cache
    
    Pruning the entire Cache to clear space temporarily can be done using evictAll.
    
    ```kotlin
    cache.evictAll()
    ```
    
    Removing individual items can be done using the urls iterator.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  2. mockwebserver-junit4/build.gradle.kts

    import com.vanniktech.maven.publish.JavadocJar
    import com.vanniktech.maven.publish.KotlinJvm
    
    plugins {
      kotlin("jvm")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    tasks.jar {
      manifest {
        attributes("Automatic-Module-Name" to "mockwebserver3.junit4")
      }
    }
    
    dependencies {
      api(projects.okhttp)
      api(projects.mockwebserver3)
      api(libs.junit)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 581 bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/HeadersTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotEqualTo
    import kotlin.test.Test
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.Headers.Companion.toHeaders
    
    class HeadersTest {
      @Test fun ofTrims() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  4. okhttp-brotli/README.md

    must choose to return Brotli responses.  n.b. It is not used for
    sending requests.
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
      .addInterceptor(BrotliInterceptor.INSTANCE)
      .build();
    ```
    
    ```kotlin
    implementation("com.squareup.okhttp3:okhttp-brotli:5.1.0")
    ```
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 571 bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerHeader.kt

      override fun hashCode(): Int {
        var result = 0
        result = 31 * result + tagClass
        result = 31 * result + tag.toInt()
        result = 31 * result + (if (constructed) 0 else 1)
        result = 31 * result + length.toInt()
        return result
      }
    
      override fun toString(): String = "$tagClass/$tag"
    
      companion object {
        const val TAG_CLASS_UNIVERSAL = 0b0000_0000
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. okhttp-zstd/README.md

    responses.
    
    Note that zstd is not used for sending requests.
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
      .addInterceptor(ZstdInterceptor.INSTANCE)
      .build();
    ```
    
    ```kotlin
    implementation("com.squareup.okhttp3:okhttp-zstd:0.0.0")
    ```
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:41:00 UTC 2025
    - 556 bytes
    - Viewed (0)
  7. okhttp-urlconnection/build.gradle.kts

    import com.vanniktech.maven.publish.JavadocJar
    import com.vanniktech.maven.publish.KotlinJvm
    
    plugins {
      kotlin("jvm")
      id("org.jetbrains.dokka")
      id("com.vanniktech.maven.publish.base")
      id("binary-compatibility-validator")
    }
    
    project.applyOsgi(
      "Fragment-Host: com.squareup.okhttp3; bundle-version=\"\${range;[==,+);\${version_cleanup;${projects.okhttp.version}}}\"",
      "Automatic-Module-Name: okhttp3.urlconnection",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 14 00:51:50 UTC 2025
    - 737 bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/MultipartReaderTest.kt

    import assertk.assertions.hasMessage
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.io.EOFException
    import java.net.ProtocolException
    import kotlin.test.assertFailsWith
    import okhttp3.Headers.Companion.headersOf
    import okhttp3.MediaType.Companion.toMediaType
    import okhttp3.MediaType.Companion.toMediaTypeOrNull
    import okhttp3.RequestBody.Companion.toRequestBody
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 02:11:14 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/README.md

    OkHttp DNS over HTTPS Implementation
    ====================================
    
    This module is an implementation of [DNS over HTTPS][1] using OkHttp.
    
    ### Download
    
    ```kotlin
    testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:5.1.0")
    ```
    
    ### Usage
    
    ```
      val appCache = Cache(File("cacheDir", "okhttpcache"), 10 * 1024 * 1024)
      val bootstrapClient = OkHttpClient.Builder().cache(appCache).build()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 19:32:33 UTC 2025
    - 739 bytes
    - Viewed (0)
  10. gradle.properties

    org.gradle.caching=true
    org.gradle.parallel=true
    
    android.useAndroidX=true
    kotlin.mpp.applyDefaultHierarchyTemplate=false
    
    androidBuild=false
    graalBuild=false
    loomBuild=false
    containerTests=false
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 240 bytes
    - Viewed (0)
Back to top