Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for Seamon (2.37 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/WebSocketRecorder.kt

        assertThat(nextEvent()).isEqualTo(Pong(payload))
      }
    
      fun assertClosing(
        code: Int,
        reason: String,
      ) {
        assertThat(nextEvent()).isEqualTo(Closing(code, reason))
      }
    
      fun assertClosed(
        code: Int,
        reason: String,
      ) {
        assertThat(nextEvent()).isEqualTo(Closed(code, reason))
      }
    
      fun assertExhausted() {
        assertThat(events).isEmpty()
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  2. .github/workflows/docs.yml

    on:
      push:
        branches:
          - master
      pull_request:
        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      test_docs:
        permissions:
          checks: write # for actions/upload-artifact
        runs-on: ubuntu-latest
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Mar 04 06:13:36 GMT 2024
    - 1K bytes
    - Viewed (0)
  3. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        System.out.println("MESSAGE: " + bytes.hex());
      }
    
      @Override public void onClosing(WebSocket webSocket, int code, String reason) {
        webSocket.close(1000, null);
        System.out.println("CLOSE: " + code + " " + reason);
      }
    
      @Override public void onFailure(WebSocket webSocket, Throwable t, Response response) {
        t.printStackTrace();
      }
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/WebSocketListener.kt

        webSocket: WebSocket,
        code: Int,
        reason: String,
      ) {
      }
    
      /**
       * Invoked when both peers have indicated that no more messages will be transmitted and the
       * connection has been successfully released. No further calls to this listener will be made.
       */
      open fun onClosed(
        webSocket: WebSocket,
        code: Int,
        reason: String,
      ) {
      }
    
      /**
    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)
  5. .github/workflows/containers.yml

    on:
      push:
        branches:
          - master
      pull_request:
        types: [opened, labeled, unlabeled, synchronize]
    
    permissions:
      contents: read
    
    env:
      GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"
    
    jobs:
      test_containers:
        permissions:
          checks: write # for actions/upload-artifact
        runs-on: ubuntu-latest
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Mar 23 12:00:11 GMT 2024
    - 911 bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

      fun setResponseCode(code: Int): MockResponse {
        val reason =
          when (code) {
            in 100..199 -> "Informational"
            in 200..299 -> "OK"
            in 300..399 -> "Redirection"
            in 400..499 -> "Client Error"
            in 500..599 -> "Server Error"
            else -> "Mock Response"
          }
        return apply { status = "HTTP/1.1 $code $reason" }
      }
    
      fun clearHeaders() =
        apply {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt

       */
      @Throws(IOException::class)
      fun onData(
        streamId: Int,
        source: BufferedSource,
        byteCount: Int,
        last: Boolean,
      ): Boolean
    
      /** Indicates the reason why this stream was canceled. */
      fun onReset(
        streamId: Int,
        errorCode: ErrorCode,
      )
    
      companion object {
        @JvmField val CANCEL: PushObserver = PushObserverCancel()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/AutobahnTester.kt

              webSocket: WebSocket,
              text: String,
            ) {
              webSocket.send(text)
            }
    
            override fun onClosing(
              webSocket: WebSocket,
              code: Int,
              reason: String,
            ) {
              webSocket.close(1000, null)
              latch.countDown()
            }
    
            override fun onFailure(
              webSocket: WebSocket,
              t: Throwable,
    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)
  9. native-image-tests/src/main/kotlin/okhttp3/DotListener.kt

      private var originalSystemErr: PrintStream? = null
      private var originalSystemOut: PrintStream? = null
      private var testCount = 0
    
      override fun executionSkipped(
        testIdentifier: TestIdentifier,
        reason: String,
      ) {
        printStatus("-")
      }
    
      private fun printStatus(s: String) {
        if (++testCount % 80 == 0) {
          printStatus("\n")
        }
        originalSystemErr?.print(s)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      }
    
      /**
       * Send a close frame with optional code and reason.
       *
       * @param code Status code as defined by
       *     [Section 7.4 of RFC 6455](http://tools.ietf.org/html/rfc6455#section-7.4) or `0`.
       * @param reason Reason for shutting down or `null`.
       */
      @Throws(IOException::class)
      fun writeClose(
        code: Int,
        reason: ByteString?,
      ) {
        var payload = ByteString.EMPTY
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top