Search Options

Results per page
Sort
Preferred Languages
Advance

Results 341 - 350 of 527 for Fun (0.03 sec)

  1. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

      @Volatile private var canceled = false
    
      fun connect(callFactory: Call.Factory) {
        call =
          callFactory.newCall(request).apply {
            enqueue(this@RealEventSource)
          }
      }
    
      override fun onResponse(
        call: Call,
        response: Response,
      ) {
        processResponse(response)
      }
    
      fun processResponse(response: Response) {
        response.use {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. buildSrc/src/main/kotlin/Osgi.kt

    import org.gradle.kotlin.dsl.findByType
    import org.gradle.kotlin.dsl.get
    import org.gradle.kotlin.dsl.getByName
    
    fun Project.applyOsgi(vararg bndProperties: String) {
      plugins.withId("org.jetbrains.kotlin.jvm") {
        applyOsgi("jar", "osgiApi", bndProperties)
      }
    }
    
    private fun Project.applyOsgi(
      jarTaskName: String,
      osgiApiConfigurationName: String,
      bndProperties: Array<out String>,
    ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

        fun verify(
          hostname: String?,
          session: SSLSession?,
        ): Boolean {
          return true
        }
    
        override fun verify(
          certs: Array<out X509Certificate>?,
          hostname: String?,
          session: SSLSession?,
        ): Boolean {
          return true
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/platform/Jdk8WithJettyBootPlatformTest.kt

    class Jdk8WithJettyBootPlatformTest {
      @RegisterExtension
      val platform = PlatformRule()
    
      @Test
      fun testBuildsWithJettyBoot() {
        assumeTrue(System.getProperty("java.specification.version") == "1.8")
        platform.assumeJettyBootEnabled()
        assertThat(buildIfSupported()).isNotNull()
      }
    
      @Test
      fun testNotBuildWithOther() {
        assumeFalse(System.getProperty("java.specification.version") == "1.8")
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Jan 04 05:32:07 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

       */
      fun newBuilder(link: String): Builder? {
        return try {
          Builder().parse(this, link)
        } catch (_: IllegalArgumentException) {
          null
        }
      }
    
      override fun equals(other: Any?): Boolean {
        return other is HttpUrl && other.url == url
      }
    
      override fun hashCode(): Int = url.hashCode()
    
      override fun toString(): String = url
    
      /**
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

        }
      }
    
      @Test fun deviations() {
        assertThat("ß".map()).isEqualTo("ß")
        assertThat("ς".map()).isEqualTo("ς")
        assertThat("\u200c".map()).isEqualTo("\u200c")
        assertThat("\u200d".map()).isEqualTo("\u200d")
      }
    
      @Test fun ignored() {
        assertThat("\u200b".map()).isEqualTo("")
        assertThat("\ufeff".map()).isEqualTo("")
      }
    
      @Test fun disallowed() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilJvm.kt

      @Throws(Exception::class)
      @JvmStatic
      fun awaitGarbageCollection() {
        Runtime.getRuntime().gc()
        Thread.sleep(100)
        System.runFinalization()
      }
    
      @JvmStatic
      fun assumeNetwork() {
        try {
          InetAddress.getByName("www.google.com")
        } catch (uhe: UnknownHostException) {
          assumeTrue(false, "requires network")
        }
      }
    
      @JvmStatic
      fun assumeNotWindows() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  8. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

          .assertLogEqual("<-- END HTTP")
          .assertNoMoreLogs()
      }
    
      @Test
      fun headersPostNoLength() {
        setLevel(Level.HEADERS)
        server.enqueue(MockResponse())
        val body: RequestBody =
          object : RequestBody() {
            override fun contentType() = PLAIN
    
            override fun writeTo(sink: BufferedSink) {
              sink.writeUtf8("Hi!")
            }
          }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CertificatePinnerKotlinTest.kt

    import org.junit.jupiter.api.Test
    
    class CertificatePinnerKotlinTest {
      @Test
      fun successfulCheckSha1Pin() {
        val certificatePinner =
          CertificatePinner.Builder()
            .add("example.com", "sha1/" + certA1.certificate.sha1Hash().base64())
            .build()
    
        certificatePinner.check("example.com", listOf(certA1.certificate))
      }
    
      @Test fun successfulFindMatchingPins() {
        val certificatePinner =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  10. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

      internal class StoriesTestProvider : SimpleProvider() {
        override fun arguments(): List<Any> = createStories(RAW_DATA)
      }
    
      private val bytesOut = Buffer()
      private val hpackWriter = Hpack.Writer(out = bytesOut)
    
      @ParameterizedTest
      @ArgumentsSource(StoriesTestProvider::class)
      fun testRoundTrip(story: Story) {
        assumeFalse(
          story === Story.MISSING,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top