Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for Follow (0.26 sec)

  1. docs/features/events.md

    ### Events with Retries and Follow-Ups
    
    OkHttp is resilient and can automatically recover from some connectivity failures. In this case, the `connectFailed()` event is not terminal and not followed by `callFailed()`. Event listeners will receive multiple events of the same type when retries are attempted.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/ws/WebSocketWriterTest.kt

        }
        serverWriter.writeMessageFrame(OPCODE_BINARY, payload.snapshot())
    
        // Write directly to the unbuffered sink. This ensures it will become single frame.
        assertData("827e") // 'e' == 4-byte follow-up length.
        assertData(format("%04X", payload.completeSegmentByteCount()))
        assertData(payload.readByteString())
      }
    
      @Test fun serverMessageLengthLong() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/OkHttp.kt

       * OkHttp in the current runtime. Use this to include the OkHttp version in custom `User-Agent`
       * headers.
       *
       * Official OkHttp releases follow [semantic versioning][semver]. Versions with the `-SNAPSHOT`
       * qualifier are not unique and should only be used in development environments. If you create
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 1.6K bytes
    - Viewed (1)
  4. okcurl/src/main/kotlin/okhttp3/curl/Main.kt

        help = "Maximum time allowed for the entire call (seconds)",
      ).int().default(DEFAULT_TIMEOUT)
    
      val followRedirects: Boolean by option("-L", "--location", help = "Follow redirects").flag()
    
      val allowInsecure: Boolean by option("-k", "--insecure", help = "Allow connections to SSL sites without certs").flag()
    
      val showHeaders: Boolean by option("-i", "--include", help = "Include protocol headers in the output").flag()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.7K bytes
    - Viewed (1)
  5. okhttp/src/main/kotlin/okhttp3/Authenticator.kt

     *         .build();
     *   }
     * }
     * return null; // Didn't find a preemptive auth scheme.
     * ```
     *
     * ## Reactive Authentication
     *
     * Implementations authenticate by returning a follow-up request that includes an authorization
     * header, or they may decline the challenge by returning null. In this case the unauthenticated
     * response will be returned to the caller that triggered it.
     *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_4x.md

     *  Fix: Don't crash with a `NullPointerException` if a server sends a close while we're sending a
        ping. OkHttp had a race condition bug.
    
    
    ## Version 4.6.0
    
    _2020-04-28_
    
     *  Fix: Follow HTTP 307 and 308 redirects on methods other than GET and POST. We're reluctant to
        change OkHttp's behavior in handling common HTTP status codes, but this fix is overdue! The new
    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)
  7. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

          )
    
        call.execute().use { response ->
          assertThat(response.body.string()).isEqualTo("abc")
          assertThat(response.trailers()).isEqualTo(headersOf("caboose", "xyz"))
        }
      }
    
      @Disabled("Follow up with fix in https://github.com/square/okhttp/issues/6853")
      @Test
      fun serverDisconnectsBeforeSecondRequestHttp1() {
        enableProtocol(Protocol.HTTP_1_1)
    
        server.enqueue(MockResponse(code = 200, body = "Req1"))
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        )
    
        // No authorization header for the first request...
        var request = server.takeRequest()
        assertThat(request.headers["Authorization"]).isNull()
    
        // ...but the three requests that follow include an authorization header.
        for (i in 0..2) {
          request = server.takeRequest()
          assertThat(request.requestLine).isEqualTo("POST / HTTP/1.1")
          assertThat(request.headers["Authorization"]).isEqualTo(
    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)
  9. docs/security/security.md

    can make. We therefore encourage reporting security issues with the code
    contained in this repository.
    
    If you believe you have discovered a security vulnerability, please follow the
    guidelines at https://bugcrowd.com/squareopensource
    
    
    ## Verifying Artifacts
    
    We sign our artifacts using this [key][signing_key]:
    
    ```
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 27 10:19:17 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/DuplexTest.kt

          requestBody.close()
          assertThat(responseBody.readUtf8Line()).isNull()
        }
        body.awaitSuccess()
      }
    
      /**
       * Duplex calls that have follow-ups are weird. By the time we know there's a follow-up we've
       * already split off another thread to stream the request body. Because we permit at most one
       * exchange at a time we break the request stream out from under that writer.
       */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 23.9K bytes
    - Viewed (0)
Back to top