Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 106 for fail (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

         * has a charset other than utf-8 the behaviour differs by platform.
         *
         * On the JVM the encoding will be used instead of utf-8.
         *
         * On non JVM platforms, this method will fail for encodings other than utf-8.
         */
        @JvmStatic
        @JvmName("create")
        fun String.toResponseBody(contentType: MediaType? = null): ResponseBody {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. okhttp/src/test/java/okhttp3/internal/http/ThreadInterruptTest.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.internal.http
    
    import assertk.fail
    import java.io.IOException
    import java.net.ServerSocket
    import java.net.Socket
    import java.net.SocketException
    import java.util.concurrent.TimeUnit
    import kotlin.test.assertFailsWith
    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)
  7. 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)
  8. 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)
  9. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        server.processNextFrame() // Ping.
        client.processNextFrame() // Pong.
    
        // After 1000ms the client will attempt a ping 2, but we don't process it. That'll cause the
        // client to fail at 1500ms when it's time to send ping 3 because pong 2 hasn't been received.
        taskFaker.advanceUntil(ns(1000L))
        taskFaker.advanceUntil(ns(1500L))
        client.listener.assertFailure(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 01:59:58 GMT 2024
    - 18.5K bytes
    - Viewed (0)
  10. 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)
Back to top