Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 251 for execute (0.25 sec)

  1. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

        server!!.enqueue(MockResponse())
        server!!.enqueue(MockResponse())
    
        client.newCall(Request(server!!.url("/")))
          .execute().close()
    
        client.newCall(Request(server!!.url("/")))
          .execute().close()
    
        assertThat(listener.recordedEventTypes()).containsExactly(
          "ConnectStart",
          "ConnectEnd",
          "ConnectionAcquired",
          "ConnectionReleased",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        val call = client.newCall(Request(serverRule.server.url("/")))
    
        call.execute().use { response ->
          assertThat(response.code).isEqualTo(200)
        }
      }
    
      @Test
      fun testRequestExternal() {
        assumeNetwork()
    
        val call = client.newCall(Request("https://google.com/robots.txt".toHttpUrl()))
    
        call.execute().use { response ->
          assertThat(response.code).isEqualTo(200)
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. SECURITY.md

    programs that TensorFlow executes. TensorFlow programs are encoded as
    computation
    [**graphs**](https://developers.google.com/machine-learning/glossary/#graph).
    Since models are practically programs that TensorFlow executes, using untrusted
    models or graphs is equivalent to running untrusted code.
    
    If you need to run untrusted models, execute them inside a
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Sun Oct 01 06:06:35 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt

        server.enqueue(MockResponse())
        assert200Http2Response(execute(url), server.hostName)
        val sanUrl = url.newBuilder().host("san.com").build()
        assert200Http2Response(execute(sanUrl), "san.com")
        assertThat(client.connectionPool.connectionCount()).isEqualTo(2)
      }
    
      private fun execute(url: HttpUrl) = client.newCall(Request(url = url)).execute()
    
      private fun assert200Http2Response(
        response: Response,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/DuplexTest.kt

        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .post(AsyncRequestBody())
              .build(),
          )
        assertFailsWith<ProtocolException> {
          call.execute()
        }
      }
    
      @Test
      fun trueDuplexClientWritesFirst() {
        enableProtocol(Protocol.HTTP_2)
        val body =
          MockStreamHandler()
            .receiveRequest("request A\n")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

      /** Guarded by [TaskRunner.lock]. */
      private var activeThreads = 0
    
      /** A task runner that posts tasks to this fake. Tasks won't be executed until requested. */
      val taskRunner: TaskRunner =
        TaskRunner(
          object : TaskRunner.Backend {
            override fun execute(
              taskRunner: TaskRunner,
              runnable: Runnable,
            ) {
              taskRunner.assertThreadHoldsLock()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

        server.enqueue(MockResponse(body = "b"))
        val request = Request(server.url("/"))
        val responseA = client.newCall(request).execute()
        assertThat(responseA.body.string()).isEqualTo("a")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(0)
        val responseB = client.newCall(request).execute()
        assertThat(responseB.body.string()).isEqualTo("b")
        assertThat(server.takeRequest().sequenceNumber).isEqualTo(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

      @Test fun singleQueueIsSerial() {
        redQueue.execute("task one", 100.µs) {
          log += "one:run@${taskFaker.nanoTime} parallel=${taskFaker.isParallel}"
        }
    
        redQueue.execute("task two", 100.µs) {
          log += "two:run@${taskFaker.nanoTime} parallel=${taskFaker.isParallel}"
        }
    
        redQueue.execute("task three", 100.µs) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

            .header("User-Agent", "SyncApiTest")
            .build()
        val call = client.newCall(request)
        val response = call.execute()
        response.body.close()
        assertFailsWith<IllegalStateException> {
          call.execute()
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Already Executed")
        }
        assertFailsWith<IllegalStateException> {
          call.enqueue(callback)
        }.also { expected ->
    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)
  10. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        val callB = client.newCall(Request(server.url("/")))
        callB.execute().use { response ->
          assertThat(response.body.string()).isEqualTo("abc")
        }
      }
    
      private fun makeSimpleCall() {
        server.enqueue(MockResponse(body = "healthy"))
        val callB = client.newCall(Request(server.url("/")))
        callB.execute().use { response ->
          assertThat(response.body.string()).isEqualTo("healthy")
        }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top