Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 244 for clients (0.21 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt

     * files to be deleted. The limit does not include filesystem overhead or the cache journal so
     * space-sensitive applications should set a conservative limit.
     *
     * Clients call [edit] to create or update the values of an entry. An entry may have only one editor
     * at one time; if a value is not available to be edited then [edit] will return null.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 34.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

     *
     * ```java
     * // The singleton HTTP client.
     * public final OkHttpClient client = new OkHttpClient.Builder()
     *     .addInterceptor(new HttpLoggingInterceptor())
     *     .cache(new Cache(cacheDir, cacheSize))
     *     .build();
     * ```
     *
     * ## Customize Your Client With newBuilder()
     *
     * You can customize a shared OkHttpClient instance with [newBuilder]. This builds a client that
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

       * We always do timeouts in the HTTP server role. For clients, we only do timeouts after the
       * request is transmitted. This is only interesting for duplex calls where the request and
       * response may be interleaved.
       *
       * Read this value only once for each enter/exit pair because its value can change.
       */
      private fun doReadTimeout() = !connection.client || sink.closed || sink.finished
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  4. CHANGELOG.md

        We planned to support multiplatform in OkHttp 5.0, but after building it, we weren't happy with
        the implementation trade-offs. We can't use our HTTP client engine on Kotlin/JS, and we weren't
        prepared to build a TLS API for Kotlin/Native.
    
        We'd prefer a multiplatform HTTP client API that's backed by OkHttp on Android and JVM, and
        other engines on other platforms. [Ktor] does this pretty well today!
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  5. 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.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Nov 09 15:47:27 GMT 2023
    - 609 bytes
    - Viewed (0)
  6. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsService.kt

    package okhttp3.survey.ssllabs
    
    import retrofit2.http.GET
    
    interface SslLabsService {
      @GET("getClients")
      suspend fun clients(): List<UserAgentCapabilities>
    
      companion object {
        const val BASE_URL = "https://api.ssllabs.com/api/v3/"
      }
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 247 bytes
    - Viewed (0)
  7. docs/changelogs/changelog_3x.md

     *  **This release deletes the long-deprecated `OkUrlFactory` and `OkApacheClient` APIs.** These
        facades hide OkHttp's implementation behind another client's API. If you still need this please
        copy and paste [ObsoleteUrlFactory.java][obsolete_url_factory] or
        [ObsoleteApacheClient.java][obsolete_apache_client] into your project.
    
     *  **OkHttp now supports duplex calls over HTTP/2.** With normal HTTP calls the request must finish
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  8. samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsApi.kt

     * limitations under the License.
     */
    package okhttp3.survey.ssllabs
    
    import retrofit2.http.GET
    
    interface SslLabsApi {
      @GET("getClients")
      suspend fun clients(): List<UserAgentCapabilities>
    
      companion object {
        const val BASE_URL = "https://api.ssllabs.com/api/v3/"
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 844 bytes
    - Viewed (0)
  9. samples/tlssurvey/src/main/kotlin/okhttp3/survey/types/Client.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.survey.types
    
    data class Client(
      val userAgent: String,
      val version: String,
      val platform: String? = null,
      val enabled: List<SuiteId> = listOf(),
      val supported: List<SuiteId> = listOf(),
    ) {
      val nameAndVersion: String
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 883 bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

            .addTrustedCertificate(clientCa.certificate)
            .heldCertificate(serverCertificate)
            .build()
        server.useHttps(serverHandshakeCertificates.sslSocketFactory(), false)
        server.enqueue(MockResponse().setBody("abc"))
        server.requestClientAuth()
        val clientCertificate =
          HeldCertificate.Builder()
            .signedBy(clientCa)
            .build()
        val clientHandshakeCertificates =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top