- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for createEl (0.18 sec)
-
docs/changelogs/changelog_3x.md
* The challenge's scheme and realm are now non-null. If you are calling `new Challenge(scheme, realm)` you must provide non-null values. These were never null in challenges created by OkHttp, but could have been null in application code that creates challenges. * New: The `TlsVersion` of a `Handshake` is now non-null. If you are calling `Handshake.get()` with a null TLS version, you must instead now provide a
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) -
okhttp/src/main/kotlin/okhttp3/HttpUrl.kt
* providing a query and fragment. * * Instances of [HttpUrl] are well-formed and always have a scheme, host, and path. With * `java.net.URL` it's possible to create an awkward URL like `http:/` with scheme and path but no * hostname. Building APIs that consume such malformed values is difficult! * * This class has a modern API. It avoids punitive checked exceptions: [toHttpUrl] throws
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 09 12:33:05 GMT 2024 - 63.5K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
mockWebServer: MockWebServer, ) { setUp(protocol, mockWebServer) server.enqueue(MockResponse(body = "abc")) server.enqueue(MockResponse(body = "def")) // Disconnect before the stream is created. A connection is still established! val call1 = client.newCall(Request(server.url("/"))) val response = call1.execute() call1.cancel() // That connection is pooled, and it works.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
* * OkHttp performs best when you create a single `OkHttpClient` instance and reuse it for all of * your HTTP calls. This is because each client holds its own connection pool and thread pools. * Reusing connections and threads reduces latency and saves memory. Conversely, creating a client * for each request wastes resources on idle pools. * * Use `new OkHttpClient()` to create a shared instance with the default settings: *
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) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
Assumptions.assumeFalse(windows) // Windows can't have two concurrent editors. // Create an editor for k1. Detach it by clearing the cache. val editor = cache.edit("k1")!! editor.setString(0, "a") editor.setString(1, "a") cache.evictAll() // Create a new value in its place. set("k1", "bb", "bb") assertThat(cache.size()).isEqualTo(4)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/EventListenerTest.kt
Request.Builder() .url(server.url("/")) .build(), ) warmUpCall.execute().use { warmUpResponse -> warmUpResponse.body.string() } listener.clearAllEvents() // Create a client with artificial delays. client = client.newBuilder() .addInterceptor( Interceptor { chain: Interceptor.Chain -> try {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 56.9K bytes - Viewed (0) -
okhttp/api/okhttp.api
public static final fun create (Lokhttp3/MediaType;[B)Lokhttp3/RequestBody; public static final fun create (Lokhttp3/MediaType;[BI)Lokhttp3/RequestBody; public static final fun create (Lokhttp3/MediaType;[BII)Lokhttp3/RequestBody; public static final fun create (Lokio/ByteString;Lokhttp3/MediaType;)Lokhttp3/RequestBody;
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 70.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
val ackFrame = peer.takeFrame() assertThat(ackFrame.type).isEqualTo(Http2.TYPE_SETTINGS) assertThat(ackFrame.streamId).isEqualTo(0) assertThat(ackFrame.ack).isTrue() // This stream was created *after* the connection settings were adjusted. val stream = connection.newStream(headerEntries("a", "android"), false) assertThat(connection.peerSettings.initialWindowSize).isEqualTo(3368)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 75.4K bytes - Viewed (0)