Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 567 for fun (0.16 sec)

  1. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Story.kt

     * reflectively with Moshi to parse stories from files.
     */
    data class Story(
      val description: String? = null,
      val cases: List<Case>,
      val fileName: String? = null,
    ) {
      // Used as the test name.
      override fun toString() = fileName ?: "?"
    
      companion object {
        @JvmField
        val MISSING = Story(description = "Missing", cases = listOf(), "missing")
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. native-image-tests/src/test/kotlin/okhttp3/nativeimage/PublicSuffixDatabaseTest.kt

    package okhttp3.nativeimage
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import org.junit.jupiter.api.Test
    
    class PublicSuffixDatabaseTest {
      @Test
      fun testResourcesLoaded() {
        val url = "https://api.twitter.com".toHttpUrl()
    
        assertThat(url.topPrivateDomain()).isEqualTo("twitter.com")
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jul 04 08:15:11 UTC 2025
    - 964 bytes
    - Viewed (0)
  3. okhttp/src/androidMain/kotlin/okhttp3/OkHttp.android.kt

       * a robolectric test.
       *
       * The functionality that will fail without a valid Context is primarily Cookies and URL Domain handling, but
       * may expand in the future.
       */
      fun initialize(applicationContext: Context) {
        if (PlatformRegistry.applicationContext == null) {
          // Make sure we aren't using an Activity or Service Context
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmMain/kotlin/okhttp3/internal/graal/GraalSvm.kt

    @Delete
    class TargetJdk8WithJettyBootPlatform
    
    @TargetClass(OpenJSSEPlatform::class)
    @Delete
    class TargetOpenJSSEPlatform
    
    @TargetClass(Platform.Companion::class)
    class TargetPlatform {
      @Substitute
      fun findPlatform(): Platform = Jdk9Platform.buildIfSupported()!!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt

     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.Request
    
    object ExternalHttp2Example {
      @JvmStatic
      fun main(args: Array<String>) {
        val client =
          OkHttpClient
            .Builder()
            .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1))
            .build()
        val call =
          client.newCall(
            Request
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  6. android-test/src/test/kotlin/okhttp/android/test/RobolectricOkHttpClientTest.kt

    import org.robolectric.annotation.Config
    
    @RunWith(RobolectricTestRunner::class)
    @Config(
      sdk = [23, 26, 30, 33, 35],
    )
    class RobolectricOkHttpClientTest : BaseOkHttpClientUnitTest() {
      @Before
      fun setContext() {
        // This is awkward because Robolectric won't run our initializers and we don't want test deps
        // https://github.com/robolectric/robolectric/issues/8461
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 16:25:39 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  7. .teamcity/src/main/kotlin/configurations/BuildLogicTest.kt

                        "-Porg.gradle.java.installations.auto-download=false",
                    ).joinToString(" "),
            )
        }) {
        companion object {
            fun buildTypeId(model: CIBuildModel) = "${model.projectId}_BuildLogicTest"
        }
    Registered: Wed Sep 10 11:36:15 UTC 2025
    - Last Modified: Mon Aug 25 20:21:47 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketExtensions.kt

    ) {
      fun noContextTakeover(clientOriginated: Boolean): Boolean =
        if (clientOriginated) {
          clientNoContextTakeover // Client is deflating.
        } else {
          serverNoContextTakeover // Server is deflating.
        }
    
      companion object {
        private const val HEADER_WEB_SOCKET_EXTENSION = "Sec-WebSocket-Extensions"
    
        @Throws(IOException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  9. container-tests/src/test/java/okhttp3/containers/SocksProxyTest.kt

          .withNetwork(network)
          .withNetworkAliases("mockserver")
    
      @Container
      val socks5Proxy =
        GenericContainer(SOCKS5_PROXY)
          .withNetwork(network)
          .withExposedPorts(1080)
    
      @Test
      fun testLocal() {
        MockServerClient(mockServer.host, mockServer.serverPort).use { mockServerClient ->
          mockServerClient
            .`when`(
              request()
                .withPath("/person")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. okhttp/src/commonTest/kotlin/okhttp3/internal/publicsuffix/PublicSuffixTesting.kt

     * limitations under the License.
     */
    package okhttp3.internal.publicsuffix
    
    import org.junit.runner.Runner
    
    expect class PublicSuffixTestRunner : Runner
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 23 16:58:05 UTC 2025
    - 753 bytes
    - Viewed (0)
Back to top