Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 214 for failed (0.3 sec)

  1. samples/tlssurvey/src/main/kotlin/okhttp3/survey/Iana.kt

      val call = okHttpClient.newCall(Request(url.toHttpUrl()))
    
      val suites =
        call.executeAsync().use {
          if (!it.isSuccessful) {
            throw IOException("Failed ${it.code} ${it.message}")
          }
          it.body.string().lines()
            .mapNotNull { parseIanaCsvRow(it) }
        }
    
      return IanaSuites("current", suites)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:24:38 GMT 2024
    - 2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheInterceptor.kt

    /*
     *  Licensed to the Apache Software Foundation (ASF) under one or more
     *  contributor license agreements.  See the NOTICE file distributed with
     *  this work for additional information regarding copyright ownership.
     *  The ASF licenses this file to You under the Apache License, Version 2.0
     *  (the "License"); you may not use this file except in compliance with
     *  the License.  You may obtain a copy of the License at
     *
    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)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

          val elapsedNs = queue.taskRunner.backend.nanoTime() - startNs
          if (completedNormally) {
            log(task, queue, "finished run in ${formatDuration(elapsedNs)}")
          } else {
            log(task, queue, "failed a run in ${formatDuration(elapsedNs)}")
          }
        }
      }
    }
    
    private fun Logger.log(
      task: Task,
      queue: TaskQueue,
      message: String,
    ) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  4. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        }.also { expected ->
          assertThat(expected).hasMessage("Failed to parse UTCTime 191216#30210Z")
        }
      }
    
      @Test fun `cannot decode generalized time with offset`() {
        assertFailsWith<ProtocolException> {
          Adapters.GENERALIZED_TIME.fromDer("181332303139313231353139303231302d30383030".decodeHex())
        }.also { expected ->
          assertThat(expected).hasMessage("Failed to parse GeneralizedTime 20191215190210-0800")
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 31.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RouteFailureTest.kt

        socketFactory[proxyServer2] = server2.inetSocketAddress
    
        println("\n\nRequest to ${server2.inetSocketAddress}")
        executeSynchronously(request)
          .apply {
            // We may have a single failed request if not clean shutdown
            if (cleanShutdown) {
              assertSuccessful()
              assertCode(200)
    
              assertThat(server2.requestCount).isEqualTo(1)
            } else {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  6. common-protos/k8s.io/api/admissionregistration/v1alpha1/generated.proto

      // If unset, the message is "failed Expression: {Expression}".
      // +optional
      optional string message = 2;
    
      // Reason represents a machine-readable description of why this validation failed.
      // If this is the first validation in the list to fail, this reason, as well as the
      // corresponding HTTP response code, are used in the
      // HTTP response to the client.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 25.7K bytes
    - Viewed (0)
  7. mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt

            servers.clear()
            for (server in toClear) {
              server.shutdown()
            }
          } catch (e: IOException) {
            logger.log(Level.WARNING, "MockWebServer shutdown failed", e)
          }
        }
      }
    
      @Suppress("NewApi")
      @IgnoreJRERequirement
      override fun supportsParameter(
        parameterContext: ParameterContext,
        extensionContext: ExtensionContext,
      ): Boolean {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 11 12:12:36 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

            return "application/xml".toMediaType()
          }
    
          override fun writeTo(sink: BufferedSink) {
            sink.writeUtf8("<el")
            sink.flush()
            throw IOException("failed to stream the XML")
          }
        }
    
        class ValidRequestBody : RequestBody() {
          override fun contentType(): MediaType {
            return "application/xml".toMediaType()
          }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/events/v1/generated.proto

      // This field cannot be empty for new Events.
      optional string reportingController = 4;
    
      // reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
      // This field cannot be empty for new Events and it can have at most 128 characters.
      optional string reportingInstance = 5;
    
      // action is what action was taken/failed regarding to the regarding object. It is machine-readable.
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. okhttp-tls/src/test/java/okhttp3/tls/HeldCertificateTest.kt

            |lu/GJQZoU9lDrCPeUcQ28tzOWw==
            |-----END PRIVATE KEY-----
            |
            """.trimMargin(),
          )
          fail<Any>()
        } catch (expected: IllegalArgumentException) {
          if (!platform.isConscrypt()) {
            assertThat(expected.message).isEqualTo("failed to decode certificate")
          }
        }
        try {
          decode(
            """
            |-----BEGIN CERTIFICATE-----
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (0)
Back to top