Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for apps (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

       */
      @Throws(IOException::class)
      private fun cacheWritingResponse(
        cacheRequest: CacheRequest?,
        response: Response,
      ): Response {
        // Some apps return a null body; for compatibility we treat that like a null cache request.
        if (cacheRequest == null) return response
        val cacheBodyUnbuffered = cacheRequest.body()
    
        val source = response.body.source()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. okhttp-android/src/test/kotlin/okhttp3/android/RobolectricOkHttpClientTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     *
     */
    package okhttp3.android
    
    import android.app.Application
    import android.content.Context
    import androidx.test.core.app.ApplicationProvider
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import assertk.assertions.isNotNull
    import assertk.assertions.isNull
    import java.net.InetAddress
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

    import okhttp3.internal.http.RecordingProxySelector
    import okhttp3.tls.HandshakeCertificates
    import okhttp3.tls.internal.TlsUtil.localhost
    
    /**
     * OkHttp is usually tested with functional tests: these use public APIs to confirm behavior against
     * MockWebServer. In cases where logic is particularly tricky, we use unit tests. This class makes
     * it easy to get sample values to use in such tests.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  4. regression-test/src/androidTest/java/okhttp/regression/compare/AndroidHttpEngineTest.kt

    import android.net.http.UrlRequest.REQUEST_PRIORITY_MEDIUM
    import android.net.http.UrlResponseInfo
    import androidx.test.ext.junit.runners.AndroidJUnit4
    import androidx.test.filters.SdkSuppress
    import androidx.test.platform.app.InstrumentationRegistry
    import java.net.HttpURLConnection
    import java.net.URL
    import java.nio.ByteBuffer
    import java.util.concurrent.CompletableFuture
    import java.util.concurrent.ExecutionException
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 24 13:19:43 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallTest.kt

            .hostnameVerifier(hostnameVerifier)
            .build()
        val request =
          Request.Builder()
            .url("https://android.com/foo")
            .header("Private", "Secret")
            .header("User-Agent", "App 1.0")
            .build()
        val response = client.newCall(request).execute()
        assertThat(response.body.string()).isEqualTo(
          "encrypted response from the origin server",
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  6. build.gradle.kts

        toolVersion = rootProject.libs.versions.checkStyle.get()
        sourceSets = listOf(project.sourceSets["main"])
      }
    
      // Animal Sniffer confirms we generally don't use APIs not on Java 8.
      configure<AnimalSnifferExtension> {
        annotation = "okhttp3.internal.SuppressSignatureCheck"
        sourceSets = listOf(project.sourceSets["main"])
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:32:42 GMT 2024
    - 8.9K bytes
    - Viewed (0)
  7. CHANGELOG.md

        `MockWebServer` and the `UPGRADE_TO_SSL_AT_END` socket option. (Only APIs on `mockwebserver3`
        are changed; the old `okhttp3.mockwebserver` APIs remain as they always have been.
    
    
    ## Version 5.0.0-alpha.7
    
    _2022-04-26_
    
    **This release introduces new Kotlin-friendly APIs.** When we migrated OkHttp from Java to Kotlin in
    OkHttp 4.0, we kept our Java-first APIs. With 5.0 we're continuing to support Java and adding
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  8. settings.gradle.kts

      }
    }
    val sdkDir = localProperties.getProperty("sdk.dir")
    if ((androidHome != null || sdkDir != null) && !isKnownBrokenIntelliJ()) {
      include(":okhttp-android")
      include(":android-test")
      include(":android-test-app")
    }
    
    enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
    
    /**
     * Avoid a crash in IntelliJ triggered by Android submodules.
     *
     * ```
     * java.lang.AssertionError: Can't find built-in class kotlin.Cloneable
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Apr 14 14:24:05 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/Cookie.kt

      /** Returns true if this cookie should be limited to only HTTPS requests. */
      @get:JvmName("secure") val secure: Boolean,
      /**
       * Returns true if this cookie should be limited to only HTTP APIs. In web browsers this prevents
       * the cookie from being accessible to scripts.
       */
      @get:JvmName("httpOnly") val httpOnly: Boolean,
      /**
       * Returns true if this cookie does not expire at the end of the current session.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

        return String(array)
      }
    
      /**
       * Okio buffers are internally implemented as a linked list of arrays. Usually this implementation
       * detail is invisible to the caller, but subtle use of certain APIs may depend on these internal
       * structures.
       *
       * We make such subtle calls in [okhttp3.internal.ws.MessageInflater] because we try to read a
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top