- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for chan (0.12 sec)
-
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
client = client.newBuilder() .addNetworkInterceptor( Interceptor { chain: Interceptor.Chain? -> val request = chain!!.request().newBuilder() .header("Host", "privateobject.com") .build() chain.proceed(request) }, ) .build() server.enqueue(MockResponse())
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) -
docs/changelogs/changelog_3x.md
itself is empty. ## Version 3.9.0 _2017-09-03_ * **Interceptors are more capable.** The `Chain` interface now offers access to the call and can adjust all call timeouts. Note that this change is source-incompatible for code that implements the `Chain` interface. We don't expect this to be a problem in practice! * **OkHttp has an experimental new API for tracking metrics.** The new
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
return URL(url) } catch (e: MalformedURLException) { throw RuntimeException(e) // Unexpected! } } /** * Returns this URL as a [java.net.URI][URI]. Because `URI` is more strict than this class, the * returned URI may be semantically different from this URL: * * * Characters forbidden by URI like `[` and `|` will be escaped. *
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/EventListenerTest.kt
client = client.newBuilder() .addInterceptor( Interceptor { chain: Interceptor.Chain? -> chain!!.proceed(chain.request()) .use { a -> assertThat(a.body.string()).isEqualTo("a") } chain.proceed(chain.request()) }, ) .build()
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/src/main/kotlin/okhttp3/OkHttpClient.kt
inline fun addInterceptor(crossinline block: (chain: Interceptor.Chain) -> Response) = addInterceptor(Interceptor { chain -> block(chain) }) /** * Returns a modifiable list of interceptors that observe a single network request and response. * These interceptors must call [Interceptor.Chain.proceed] exactly once: it is an error for a
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/api/okhttp.api
public abstract fun withConnectTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain; public abstract fun withReadTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain; public abstract fun withWriteTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain; public abstract fun writeTimeoutMillis ()I } public final class okhttp3/Interceptor$Companion {
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)