Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for replay (0.18 sec)

  1. docs/works_with_okhttp.md

     * [OkHttp Profiler](https://plugins.jetbrains.com/plugin/11249-okhttp-profiler): An IntelliJ plugin for monitoring OkHttp calls.
     * [OkReplay](https://github.com/airbnb/okreplay): Record and replay OkHttp network interaction in your tests.
     * [okhttp-signpost](https://github.com/pakerfeldt/okhttp-signpost): OAuth signing with signpost and OkHttp.
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Wed Jun 08 18:15:23 GMT 2022
    - 3.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

         * Read a connection-level ping from the peer. `ack` indicates this is a reply. The data
         * in `payload1` and `payload2` opaque binary, and there are no rules on the content.
         */
        fun ping(
          ack: Boolean,
          payload1: Int,
          payload2: Int,
        )
    
        /**
         * The peer tells us to stop creating streams. It is safe to replay streams with
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertContent("A", getResponse(newRequest("/a")))
    
        // Give the server time to disconnect.
        Thread.sleep(500)
    
        // If the request body is larger than OkHttp's replay buffer, the failure may still occur.
        val requestBodyChars = CharArray(requestSize)
        Arrays.fill(requestBodyChars, 'x')
        val requestBody = String(requestBodyChars)
        for (j in 0..1) {
          try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

        file!!.channel.force(false)
    
        // This file is complete.
        synchronized(this@Relay) {
          complete = true
        }
    
        upstream?.closeQuietly()
        upstream = null
      }
    
      fun metadata(): ByteString = metadata
    
      /**
       * Returns a new source that returns the same bytes as upstream. Returns null if this relay has
       * been closed and no further sources are possible. In that case callers should retry after
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  5. deploy_website.sh

    set -ex
    
    REPO="******@****.***:square/okhttp.git"
    DIR=temp-clone
    
    # Delete any existing temporary website clone
    rm -rf $DIR
    
    # Clone the current repo into temp folder
    git clone $REPO $DIR
    # Replace `git clone` with these lines to hack on the website locally
    # cp -a . "../okhttp-website"
    # mv "../okhttp-website" "$DIR"
    
    # Move working directory into temp folder
    cd $DIR
    
    # Generate the API docs
    Shell Script
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Nov 20 15:26:12 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

       * overflow and return null.
       */
      @Test fun overflowEncodingOversizedLabel() {
        val a1000 = "a".repeat(1000)
        val a1000MaxCodePoint = a1000 + "\udbff\udfff"
        testEncodeDecode(
          a1000MaxCodePoint,
          "xn--$a1000-nc89312g",
        )
        assertNull(
          Punycode.encode(a1000MaxCodePoint.repeat(2)),
        )
      }
    
      @Test fun invalidPunycode() {
        assertNull(Punycode.decode("xn--ls8h="))
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/ServerSentEventIteratorTest.kt

          |data: +2
          |data: 10
          |
          |
          """.trimMargin().replace("\n", "\r"),
        )
        assertThat(callbacks.remove()).isEqualTo(Event(null, null, "YHOO\n+2\n10"))
      }
    
      @Test
      fun multilineCrLf() {
        consumeEvents(
          """
          |data: YHOO
          |data: +2
          |data: 10
          |
          |
          """.trimMargin().replace("\n", "\r\n"),
        )
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

     * limitations under the License.
     */
    package okhttp3.internal.ws
    
    import assertk.assertThat
    import assertk.assertions.isEqualTo
    import java.util.Random
    import kotlin.test.assertFailsWith
    import okhttp3.TestUtil.repeat
    import okhttp3.internal.format
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_BINARY
    import okhttp3.internal.ws.WebSocketProtocol.OPCODE_TEXT
    import okhttp3.internal.ws.WebSocketProtocol.PAYLOAD_BYTE_MAX
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

    import okhttp3.TestUtil.threadFactory
    import okhttp3.internal.closeQuietly
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString
    import okio.buffer
    import okio.source
    
    /** Replays prerecorded outgoing frames and records incoming frames.  */
    class MockHttp2Peer : Closeable {
      private var frameCount = 0
      private var client = false
      private val bytesOut = Buffer()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

        // Confirm that the connection pool was not corrupted by making another call.
        makeSimpleCall()
      }
    
      /**
       * If the server returns a full response, it doesn't really matter if the HTTP/2 stream is reset.
       * Attempts to write the request body fails fast.
       */
      @Test
      fun serverTruncatesRequestHttp2OnDuplexRequest() {
        enableProtocol(Protocol.HTTP_2)
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
Back to top