- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for define (0.34 sec)
-
docs/changelogs/upgrading_to_okhttp_4.md
SAM Conversions --------------- When you use Java APIs from Kotlin you can operate on Java interfaces as if they were Kotlin lambdas. The [feature][java_sams] is available for interfaces that define a Single Abstract Method (SAM). But when you use Kotlin APIs from Kotlin there’s no automatic conversion. Code that used SAM lambdas with OkHttp 3.x: must use `object :` with OkHttp 4.x: Kotlin calling OkHttp 3.x:
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 16:58:16 GMT 2022 - 10.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RouteFailureTest.kt
@ValueSource(booleans = [false, true]) fun proxyMoveTest(cleanShutdown: Boolean) { // Define a single Proxy at myproxy:8008 that will artificially move during the test val proxySelector = RecordingProxySelector() proxySelector.proxies.add(Proxy(Proxy.Type.HTTP, InetSocketAddress("myproxy", 8008))) // Define two host names for the DNS routing of fake proxy servers
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 11.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallHandshakeTest.kt
val client = makeClient() makeRequest(client) // As of OkHttp 5 we now apply the ordering from the OkHttpClient, which defaults to MODERN_TLS // Clients might need a changed order, but can at least define a preferred order to override that default. val socketOrderedByDefaults = handshakeEnabledCipherSuites.sortedBy { ConnectionSpec.MODERN_TLS.cipherSuitesAsString!!.indexOf(it) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 11.2K bytes - Viewed (0) -
docs/recipes.md
`MultipartBody.Builder` can build sophisticated request bodies compatible with HTML file upload forms. Each part of a multipart request body is itself a request body, and can define its own headers. If present, these headers should describe the part body, such as its `Content-Disposition`. The `Content-Length` and `Content-Type` headers are added automatically if they're available.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Feb 18 08:52:22 GMT 2022 - 40.2K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/Request.kt
open fun headers(headers: Headers) = commonHeaders(headers) /** * Sets this request's `Cache-Control` header, replacing any cache control headers already * present. If [cacheControl] doesn't define any directives, this clears this request's * cache-control headers. */ open fun cacheControl(cacheControl: CacheControl): Builder = commonCacheControl(cacheControl)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 04:17:44 GMT 2024 - 10.5K bytes - Viewed (0) -
LICENSE.txt
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jul 23 14:02:28 GMT 2012 - 11.1K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
* * > A DNS API client encodes a single DNS query into an HTTP request * > using either the HTTP GET or POST method and the other requirements * > of this section. The DNS API server defines the URI used by the * > request through the use of a URI Template. * * [doh_spec]: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-13 */ class DnsOverHttps internal constructor(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Fri Mar 22 07:09:21 GMT 2024 - 9.8K bytes - Viewed (0) -
docs/changelogs/changelog_2x.md
// OkHttp 2.x: HttpURLConnection connection = new OkUrlFactory(client).open(url); ``` * **Custom caches are no longer supported.** In OkHttp 1.x it was possible to define your own response cache with the `java.net.ResponseCache` and OkHttp's `OkResponseCache` interfaces. Both of these APIs have been dropped. In OkHttp 2 the built-in disk cache is the only supported response cache.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 26.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt
} else -> throw IOException("Unexpected response code for CONNECT: ${response.code}") } } } /** * Returns this if its [connectionSpecIndex] is defined, or a new connection with it defined * otherwise. */ @Throws(IOException::class) internal fun planWithCurrentOrInitialConnectionSpec( connectionSpecs: List<ConnectionSpec>, sslSocket: SSLSocket,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 18.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt
* the already-requested ones are in service, otherwise we might create more threads than we need. * * We use [executeCallCount] and [runCallCount] to defend against starting more threads than we * need. Both fields are guarded by [lock]. */ private var executeCallCount = 0 private var runCallCount = 0
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 29 00:33:04 GMT 2024 - 10.6K bytes - Viewed (0)