Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 111 for fail (0.16 sec)

  1. okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt

     * limitations under the License.
     */
    package okhttp3
    
    import assertk.assertThat
    import assertk.assertions.startsWith
    import kotlin.test.assertFailsWith
    import kotlin.test.fail
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.internal.idn.Punycode
    import okio.Buffer
    import okio.ByteString
    import okio.ByteString.Companion.encodeUtf8
    
    /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        }, 1, TimeUnit.SECONDS);
    
        System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f);
        try (Response response = call.execute()) {
          System.out.printf("%.2f Call was expected to fail, but completed: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, response);
        } catch (IOException e) {
          System.out.printf("%.2f Call failed as expected: %s%n",
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Viewed (0)
  3. docs/changelogs/changelog_1x.md

     * New: Use ALPN on Android platforms that support it (4.4+)
     * New: CacheControl model and parser.
     * New: Protocol selection in MockWebServer.
     * Fix: Route selection shouldn't use TLS modes that we know will fail.
     * Fix: Cache SPDY responses even if the response body is closed prematurely.
     * Fix: Use strict timeouts when aborting a download.
     * Fix: Support Shoutcast HTTP responses like `ICY 200 OK`.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 6.4K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

          // The cache candidate wasn't applicable. Close it.
          cacheCandidate.body.closeQuietly()
        }
    
        // If we're forbidden from using the network and the cache is insufficient, fail.
        if (networkRequest == null && cacheResponse == null) {
          return Response.Builder()
            .request(chain.request())
            .protocol(Protocol.HTTP_1_1)
            .code(HTTP_GATEWAY_TIMEOUT)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

    import okhttp3.logging.HttpLoggingInterceptor.Level
    import okhttp3.testing.PlatformRule
    import okio.Buffer
    import okio.BufferedSink
    import okio.ByteString.Companion.decodeBase64
    import org.junit.jupiter.api.Assertions.fail
    import org.junit.jupiter.api.Assumptions
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.extension.RegisterExtension
    
    class HttpLoggingInterceptorTest {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 37.6K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/testing/PlatformRule.kt

              val description = StringDescription()
              versionMatcher.describeTo(description)
              description.appendText(" expected to fail with exception that ")
              failureMatcher.describeTo(description)
    
              fail<Any>(description.toString())
            }
          }
        }
    
        fun isConscrypt() = getPlatformSystemProperty() == CONSCRYPT_PROPERTY
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/DeprecationBridge.kt

        SocketPolicy.DISCONNECT_DURING_RESPONSE_BODY -> DisconnectDuringResponseBody
        SocketPolicy.DO_NOT_READ_REQUEST_BODY -> DoNotReadRequestBody(http2ErrorCode)
        SocketPolicy.FAIL_HANDSHAKE -> FailHandshake
        SocketPolicy.SHUTDOWN_INPUT_AT_END -> ShutdownInputAtEnd
        SocketPolicy.SHUTDOWN_OUTPUT_AT_END -> ShutdownOutputAtEnd
        SocketPolicy.STALL_SOCKET_AT_START -> StallSocketAtStart
    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)
  8. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        // If the server returned parameters we don't understand, fail the web socket.
        if (unknownValues) return false
    
        // If the server returned a value for client_max_window_bits, fail the web socket.
        if (clientMaxWindowBits != null) return false
    
        // If the server returned an illegal server_max_window_bits, fail the web socket.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/tls/BasicCertificateChainCleaner.kt

          }
    
          // We've reached the end of the chain. If any cert in the chain is trusted, we're done.
          if (foundTrustedCertificate) {
            return result
          }
    
          // The last link isn't trusted. Fail.
          throw SSLPeerUnverifiedException(
            "Failed to find a trusted cert that signed $toVerify",
          )
        }
    
        throw SSLPeerUnverifiedException("Certificate chain too long: $result")
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/connection/RoutePlanner.kt

      /**
       * What to do once a plan has executed.
       *
       * If [nextPlan] is not-null, another attempt should be made by following it. If [throwable] is
       * non-null, it should be reported to the user should all further attempts fail.
       *
       * The two values are independent: results can contain both (recoverable error), neither
       * (success), just an exception (permanent failure), or just a plan (non-exceptional retry).
       */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 4.2K bytes
    - Viewed (0)
Back to top