Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 889 for Eval (0.05 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

    @Testcontainers
    class BasicProxyTest {
      @Container
      val mockServer: MockServerContainer =
        MockServerContainer(MOCKSERVER_IMAGE)
          .withNetworkAliases("mockserver")
    
      @Test
      fun testOkHttpDirect() {
        testRequest {
          val client = OkHttpClient()
    
          val response =
            client.newCall(
              Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()),
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

      fun legalToExecuteTwiceCloning() {
        server.enqueue(MockResponse(body = "abc"))
        server.enqueue(MockResponse(body = "def"))
    
        val request = Request(server.url("/"))
    
        val call = client.newCall(request)
        val response1 = call.execute()
    
        val cloned = call.clone()
        val response2 = cloned.execute()
    
        assertThat("abc").isEqualTo(response1.body.string())
        assertThat("def").isEqualTo(response2.body.string())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. build-logic/build-init-samples/src/main/kotlin/gradlebuild/samples/SamplesGenerator.kt

            val languages = projectLayoutSetupRegistry.getLanguagesFor(descriptor.componentType)
            var exampleClass = if (descriptor.componentType === ComponentType.LIBRARY) "Library" else "App"
            val testFileSuffix = if (descriptor.language === Language.SCALA) "Suite" else "Test"
            val sourceFile: String
            val testSourceFile: String
            val sourceFileTree: String
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Tue Oct 22 11:11:17 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheTest.kt

            .build()
        val request = Request.Builder().url(server.url("/")).build()
        val response1 = client.newCall(request).execute()
        val source = response1.body.source()
        assertThat(source.readUtf8()).isEqualTo("ABC")
    
        // OpenJDK 6 fails on this line, complaining that the connection isn't open yet
        val cipherSuite = response1.handshake!!.cipherSuite
        val localCerts = response1.handshake!!.localCertificates
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/SocksProxy.kt

      companion object {
        const val HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS = "onlyProxyCanResolveMe.org"
        private const val VERSION_5 = 5
        private const val METHOD_NONE = 0xff
        private const val METHOD_NO_AUTHENTICATION_REQUIRED = 0
        private const val ADDRESS_TYPE_IPV4 = 1
        private const val ADDRESS_TYPE_DOMAIN_NAME = 3
        private const val COMMAND_CONNECT = 1
        private const val REPLY_SUCCEEDED = 0
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http2/Header.kt

        // Special header names defined in HTTP/2 spec.
        @JvmField val PSEUDO_PREFIX: ByteString = ":".encodeUtf8()
    
        const val RESPONSE_STATUS_UTF8 = ":status"
        const val TARGET_METHOD_UTF8 = ":method"
        const val TARGET_PATH_UTF8 = ":path"
        const val TARGET_SCHEME_UTF8 = ":scheme"
        const val TARGET_AUTHORITY_UTF8 = ":authority"
    
        @JvmField val RESPONSE_STATUS: ByteString = RESPONSE_STATUS_UTF8.encodeUtf8()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

      @Test fun testDigestChallengeWithStrictRfc2617Header() {
        val headers =
          Headers.Builder()
            .add(
              "WWW-Authenticate",
              "Digest realm=\"myrealm\", nonce=\"fjalskdflwejrlaskdfjlaskdjflaks" +
                "jdflkasdf\", qop=\"auth\", stale=\"FALSE\"",
            )
            .build()
        val challenges = headers.parseChallenges("WWW-Authenticate")
        assertThat(challenges.size).isEqualTo(1)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

      internal data class Message(
        val bytes: ByteString? = null,
        val string: String? = null,
      )
    
      internal data class Ping(
        val payload: ByteString,
      )
    
      internal data class Pong(
        val payload: ByteString,
      )
    
      internal data class Closing(
        val code: Int,
        val reason: String,
      )
    
      internal data class Closed(
        val code: Int,
        val reason: String,
      )
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/connection/InetAddressOrderTest.kt

    @Suppress("ktlint:standard:property-naming")
    class InetAddressOrderTest {
      val ipv4_10_0_0_6 = Inet4Address.getByName("10.0.0.6")
      val ipv4_10_0_0_1 = Inet4Address.getByName("10.0.0.1")
      val ipv4_10_0_0_4 = Inet4Address.getByName("10.0.0.4")
      val ipv6_ab = Inet6Address.getByName("::ac")
      val ipv6_fc = Inet6Address.getByName("::fc")
    
      @Test fun prioritiseIpv6Example() {
        val result =
          reorderForHappyEyeballs(
            listOf(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/DuplexTest.kt

            .streamHandler(body)
            .build(),
        )
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .post(AsyncRequestBody())
              .build(),
          )
        call.execute().use { response ->
          val requestBody = (call.request().body as AsyncRequestBody?)!!.takeSink()
          val responseBody = response.body.source()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top