- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 31 for invoke (0.23 sec)
-
okhttp/src/main/kotlin/okhttp3/Interceptor.kt
* interceptors. * * ```kotlin * val interceptor = Interceptor { chain: Interceptor.Chain -> * chain.proceed(chain.request()) * } * ``` */ inline operator fun invoke(crossinline block: (chain: Chain) -> Response): Interceptor = Interceptor { block(it) } } interface Chain { fun request(): Request @Throws(IOException::class) fun proceed(request: Request): Response
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.5K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
bytes in would always yield deflated bytes out and this isn't always the case! * Fix: Reliably update and invalidate the disk cache on windows. As originally designed our internal `DiskLruCache` assumes an inode-like file system, where it's fine to delete files that are currently being read or written. On Windows the file system forbids this so we must be more careful when deleting and renaming files.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 17 13:25:31 GMT 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
.build() server.useHttps(handshakeCertificates.sslSocketFactory()) server.protocolNegotiationEnabled = true server.protocols = client.protocols } /** * Used during tests that involve TLS connection fallback attempts. OkHttp includes the * TLS_FALLBACK_SCSV cipher on fallback connections. See [FallbackTestClientSocketFactory] * for details. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/api/okhttp.api
public abstract fun withWriteTimeout (ILjava/util/concurrent/TimeUnit;)Lokhttp3/Interceptor$Chain; public abstract fun writeTimeoutMillis ()I } public final class okhttp3/Interceptor$Companion { public final fun invoke (Lkotlin/jvm/functions/Function1;)Lokhttp3/Interceptor; } public final class okhttp3/MediaType { public static final field Companion Lokhttp3/MediaType$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) -
okhttp/src/main/kotlin/okhttp3/EventListener.kt
) { } /** * Invoked immediately after a DNS lookup. * * This method is invoked after [dnsStart]. */ open fun dnsEnd( call: Call, domainName: String, inetAddressList: List<@JvmSuppressWildcards InetAddress>, ) { } /** * Invoked just prior to initiating a socket connection. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15.2K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/EventSourceListener.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.sse import okhttp3.Response abstract class EventSourceListener { /** * Invoked when an event source has been accepted by the remote peer and may begin transmitting * events. */ open fun onOpen( eventSource: EventSource, response: Response, ) { } /**
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.5K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/internal/platform/Jdk8WithJettyBootPlatform.kt
AlpnProvider(names), ) putMethod.invoke(null, sslSocket, alpnProvider) } catch (e: InvocationTargetException) { throw AssertionError("failed to set ALPN", e) } catch (e: IllegalAccessException) { throw AssertionError("failed to set ALPN", e) } } override fun afterHandshake(sslSocket: SSLSocket) { try { removeMethod.invoke(null, sslSocket) } catch (e: IllegalAccessException) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidSocketAdapter.kt
// Enable session tickets. setUseSessionTickets.invoke(sslSocket, true) // Assume platform support on 24+ if (hostname != null && Build.VERSION.SDK_INT <= 23) { // This is SSLParameters.setServerNames() in API 24+. setHostname.invoke(sslSocket, hostname) } // Enable ALPN. setAlpnProtocols.invoke( sslSocket,
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/IdnStringprep.kt
) { /** * Returns [input] in canonical form according to these rules, or null if no such canonical form * exists for it. */ operator fun invoke(input: String): String? = invoke(Buffer().writeUtf8(input)) internal operator fun invoke(input: BufferedSource): String? { // 1. Map. val mapResult = Buffer() while (!input.exhausted()) { val codePoint = input.readUtf8CodePoint()
Plain Text - Registered: Fri Mar 29 11:42:11 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/LoomTest.kt
.build() } private fun newVirtualThreadPerTaskExecutor(): ExecutorService { return Executors::class.java.getMethod("newVirtualThreadPerTaskExecutor").invoke(null) as ExecutorService } @Test fun testRequest() { server.enqueue(MockResponse()) val request = Request(server.url("/")) client.newCall(request).execute().use {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2K bytes - Viewed (0)