- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 23 for webSocketListener (0.12 sec)
-
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
settings = mockResponse.settings mockResponse = mockResponse.withWebSocketUpgrade( object : WebSocketListener() { }, ) var webSocketListener: WebSocketListener? = mockResponse.webSocketListener webSocketListener = mockResponse.webSocketListener } @Test fun mockWebServer() { val mockWebServer: MockWebServer = MockWebServer()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
.url(webServer.url("/")) .build() val attempts = CountDownLatch(20) val webSockets = Collections.synchronizedList(ArrayList<WebSocket>()) val reconnectOnFailure: WebSocketListener = object : WebSocketListener() { override fun onFailure( webSocket: WebSocket, t: Throwable, response: Response?, ) { if (attempts.count > 0) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
samples/slack/src/main/java/okhttp3/slack/SlackApi.java
import java.io.IOException; import okhttp3.Call; import okhttp3.HttpUrl; import okhttp3.WebSocket; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import okhttp3.WebSocketListener; import okio.ByteString; /** * API access to the <a href="https://api.slack.com/apps">Slack API</a> as an application. One
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Jul 06 19:30:55 UTC 2018 - 4.4K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt
delegate.shutdown() } } } internal fun MockResponse.wrap(): mockwebserver3.MockResponse { val result = mockwebserver3.MockResponse.Builder() val copyFromWebSocketListener = webSocketListener if (copyFromWebSocketListener != null) { result.webSocketUpgrade(copyFromWebSocketListener) } val body = getBody() if (body != null) result.body(body) for (pushPromise in pushPromises) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 4.6K bytes - Viewed (0) -
mockwebserver-deprecated/api/mockwebserver.api
public final fun getThrottleBytesPerPeriod ()J public final fun getThrottlePeriod (Ljava/util/concurrent/TimeUnit;)J public final fun getTrailers ()Lokhttp3/Headers; public final fun getWebSocketListener ()Lokhttp3/WebSocketListener; public final fun headers (Lokhttp3/Headers;)V public final fun http2ErrorCode (I)V public final fun removeHeader (Ljava/lang/String;)Lokhttp3/mockwebserver/MockResponse;
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt
| * Response.cacheResponse | * Response.networkResponse | * Response.priorResponse | * EventSourceListener | * WebSocketListener |(It is safe to call contentType() and contentLength() on these response bodies.) """.trimMargin(), ) } override fun timeout() = Timeout.NONE override fun close() { } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 5.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/WebSocket.kt
* notified. The caller must either close or cancel the returned web socket when it is no longer * in use. */ fun newWebSocket( request: Request, listener: WebSocketListener, ): WebSocket }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt
override fun newCall(request: Request): Call = RealCall(this, request, forWebSocket = false) /** Uses [request] to connect a new web socket. */ override fun newWebSocket( request: Request, listener: WebSocketListener, ): WebSocket { val webSocket = RealWebSocket( taskRunner = taskRunner, originalRequest = request, listener = listener, random = Random(),
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Apr 06 04:21:33 UTC 2024 - 52K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt
import okhttp3.Call import okhttp3.Callback import okhttp3.EventListener import okhttp3.OkHttpClient import okhttp3.Protocol import okhttp3.Request import okhttp3.Response import okhttp3.WebSocket import okhttp3.WebSocketListener import okhttp3.internal.assertThreadHoldsLock import okhttp3.internal.closeQuietly import okhttp3.internal.concurrent.Task import okhttp3.internal.concurrent.TaskRunner import okhttp3.internal.connection.Exchange
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 22.1K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
"Upgrade".equals(request.headers["Connection"], ignoreCase = true) && "websocket".equals(request.headers["Upgrade"], ignoreCase = true) val responseWantsWebSockets = response.webSocketListener != null if (requestWantsWebSockets && responseWantsWebSockets) { handleWebSocketUpgrade(socket, source, sink, request, response) reuseSocket = false } else {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0)