Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 2,436 for Call (0.14 seconds)

  1. okhttp-coroutines/README.md

    OkHttp Coroutines
    =================
    
    Support for Kotlin clients using coroutines.
    
    ```kotlin
    val call = client.newCall(request)
    
    call.executeAsync().use { response ->
      withContext(Dispatchers.IO) {
        println(response.body?.string())
      }
    }
    ```
    
    This is implemented using `suspendCancellableCoroutine`
    but uses the standard Dispatcher in OkHttp. This means
    that by default Kotlin's Dispatchers are not used.
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Nov 09 15:47:27 GMT 2023
    - 609 bytes
    - Click Count (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import kotlin.reflect.KClass
    import okio.Timeout
    
    open class FailingCall : Call {
      override fun request(): Request = error("unexpected")
    
      override fun execute(): Response = error("unexpected")
    
      override fun enqueue(responseCallback: Callback): Unit = error("unexpected")
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsClient.kt

     */
    package okhttp3.survey.ssllabs
    
    import com.squareup.moshi.Moshi
    import okhttp3.Call
    import okhttp3.OkHttpClient
    import okhttp3.survey.types.Client
    import okhttp3.survey.types.SuiteId
    import retrofit2.Retrofit
    import retrofit2.converter.moshi.MoshiConverterFactory
    
    class SslLabsClient(
      callFactory: Call.Factory,
    ) {
      private val moshi = Moshi.Builder().build()
    
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  4. docs/changelogs/changelog_3x.md

    _2019-09-29_
    
     *  Fix: Cancel calls that fail due to unexpected exceptions. We had a bug where an enqueued call
        would never call back if it crashed with an unchecked throwable, such as a
        `NullPointerException` or `OutOfMemoryError`. We now call `Callback.onFailure()` with an
        `IOException` that reports the call as canceled. The triggering exception is still delivered to
        the thread's `UncaughtExceptionHandler`.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt

          clientTestRule
            .newClientBuilder()
            .sslSocketFactory(clientCertificates.sslSocketFactory(), clientCertificates.trustManager)
            .build()
    
        val call = client.newCall(Request(server.url("/")))
        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.handshake!!.cipherSuite).isNotNull()
        assertThat(response.handshake!!.tlsVersion).isNotNull()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  6. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

        hostname: String,
        networkRequests: List<Call>,
        responses: MutableList<InetAddress>,
        failures: MutableList<Exception>,
      ) {
        val latch = CountDownLatch(networkRequests.size)
    
        for (call in networkRequests) {
          call.enqueue(
            object : Callback {
              override fun onFailure(
                call: Call,
                e: IOException,
              ) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat May 10 11:15:14 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt

     * [close()][Response.close] for you.
     *
     * ```java
     * Call call = client.newCall(request);
     * try (Response response = call.execute()) {
     * ... // Use the response.
     * }
     * ```
     *
     * You can use a similar block for asynchronous calls:
     *
     * ```java
     * Call call = client.newCall(request);
     * call.enqueue(new Callback() {
     *   public void onResponse(Call call, Response response) throws IOException {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue May 27 14:51:25 GMT 2025
    - 11.6K bytes
    - Click Count (0)
  8. src/cmd/asm/internal/asm/testdata/arm.s

    	BL.GE	4(PC)  // CALL.GE 4(PC)    // 020000ab
    	BL.LT	3(PC)  // CALL.LT 3(PC)    // 010000bb
    	BL.GT	2(PC)  // CALL.GT 2(PC)    // 000000cb
    	BL.LE	1(PC)  // CALL.LE 1(PC)    // ffffffdb
    	ADD	$0, R0, R0
    	BL	-1(PC) // CALL -1(PC)      // fdffffeb
    	BL	-2(PC) // CALL -2(PC)      // fcffffeb
    	BL	-3(PC) // CALL -3(PC)      // fbffffeb
    	BL	-4(PC) // CALL -4(PC)      // faffffeb
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Dec 15 20:51:01 GMT 2023
    - 69K bytes
    - Click Count (0)
  9. src/cmd/asm/internal/asm/testdata/mips.s

    	JMP	label0+0	// JMP 66
    	BEQ	R1, 2(PC)
    	JAL	1(PC)	// CALL 1(PC)
    	BEQ	R1, 2(PC)
    	JAL	label0+0	// CALL 66
    
    	//	LBRA addr
    	//	{
    	//		outcode(int($1), &nullgen, 0, &$2);
    	//	}
    	BEQ	R1, 2(PC)
    	JMP	0(R1)	// JMP (R1)
    	BEQ	R1, 2(PC)
    	JMP	foo+0(SB)	// JMP foo(SB)
    	BEQ	R1, 2(PC)
    	JAL	0(R1)	// CALL (R1)
    	BEQ	R1, 2(PC)
    	JAL	foo+0(SB)	// CALL foo(SB)
    
    //
    // BEQ/BNE
    //
    //	LBRA rreg ',' rel
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 6.7K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

        }
    
      fun connectionCount(): Int = connections.size
    
      /**
       * Attempts to acquire a recycled connection to [address] for [call]. Returns the connection if it
       * was acquired, or null if no connection was acquired. The acquired connection will also be
       * given to [call] who may (for example) assign it to a [RealCall.connection].
       *
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top