Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for CloseStream (0.19 sec)

  1. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

     */
    package okhttp3.mockwebserver
    
    import java.util.concurrent.TimeUnit.MILLISECONDS
    import mockwebserver3.SocketEffect
    import mockwebserver3.SocketEffect.CloseSocket
    import mockwebserver3.SocketEffect.CloseStream
    import mockwebserver3.SocketEffect.ShutdownConnection
    import okio.Buffer
    import okio.ByteString
    
    internal fun Dispatcher.wrap(): mockwebserver3.Dispatcher {
      if (this is QueueDispatcher) return this.delegate
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 03 13:16:34 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

       */
      public object ShutdownConnection : SocketEffect
    
      /**
       * On HTTP/2 this will send the error code on the stream.
       *
       * On HTTP/1 this closes the socket.
       */
      public class CloseStream(
        public val http2ErrorCode: Int = 0,
      ) : SocketEffect
    
      /** Stop processing this. */
      public object Stall : SocketEffect
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top