Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 102 for errored (0.14 sec)

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

            override fun select(uri: URI) = listOf(socksProxy.proxy())
    
            override fun connectFailed(
              uri: URI,
              socketAddress: SocketAddress,
              e: IOException,
            ) = error("unexpected call")
          }
        val client =
          clientTestRule.newClientBuilder()
            .proxySelector(proxySelector)
            .build()
        val request = Request.Builder().url(server.url("/")).build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

    /**
     * Access every declaration that is deprecated with [DeprecationLevel.ERROR]. Although new Kotlin
     * code shouldn't use these, they're necessary for clients migrating from OkHttp 3.x and this test
     * ensures the symbols remain available and with the expected parameter and return types.
     */
    @Suppress(
      "DEPRECATION_ERROR",
      "UNUSED_VALUE",
      "UNUSED_VARIABLE",
      "VARIABLE_WITH_REDUNDANT_INITIALIZER",
    )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.3K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

        flags: Int,
      ) {
        if (type != TYPE_WINDOW_UPDATE && logger.isLoggable(FINE)) {
          logger.fine(frameLog(false, streamId, length, type, flags))
        }
        require(length <= maxFrameSize) { "FRAME_SIZE_ERROR length > $maxFrameSize: $length" }
        require(streamId and 0x80000000.toInt() == 0) { "reserved bit set: $streamId" }
        sink.writeMedium(length)
        sink.writeByte(type and 0xff)
        sink.writeByte(flags and 0xff)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    http://%30%78%63%30%2e%30%32%35%30.01  s:http p:/ h:192.168.0.1
    http://%30%78%63%30%2e%30%32%35%30.01%2e  s:http p:/ h:0xc0.0250.01.
    http://192.168.0.257
    
    # Invalid escaping should trigger the regular host error handling.
    http://%3g%78%63%30%2e%30%32%35%30%2E.01
    
    # Something that isn't exactly an IP should get treated as a host and
    # spaces escaped.
    http://192.168.0.1\shello
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

              3,
              'B'.code,
              'a'.code,
              'R'.code,
            ),
          ).readHeaders()
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "PROTOCOL_ERROR response malformed: mixed case name: Foo",
          )
        }
      }
    
      @Test
      fun emptyHeaderName() {
        hpackWriter!!.writeByteString("".encodeUtf8())
        assertBytes(0)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 38.2K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

        // we should try the next route (if there is one).
        if (e is InterruptedIOException) {
          return e is SocketTimeoutException && !requestSendStarted
        }
    
        // Look for known client-side or negotiation errors that are unlikely to be fixed by trying
        // again with a different route.
        if (e is SSLHandshakeException) {
          // If the problem was a CertificateException from the X509TrustManager,
          // do not retry.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  7. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt

            in 100..199 -> "Informational"
            in 200..299 -> "OK"
            in 300..399 -> "Redirection"
            in 400..499 -> "Client Error"
            in 500..599 -> "Server Error"
            else -> "Mock Response"
          }
        return apply { status = "HTTP/1.1 $code $reason" }
      }
    
      fun clearHeaders() =
        apply {
          headersBuilder = Headers.Builder()
        }
    
      fun addHeader(header: String) =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

        replaceWith = ReplaceWith(expression = "dispatcher"),
        level = DeprecationLevel.ERROR,
      )
      fun dispatcher(): Dispatcher = dispatcher
    
      @JvmName("-deprecated_connectionPool")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "connectionPool"),
        level = DeprecationLevel.ERROR,
      )
      fun connectionPool(): ConnectionPool = connectionPool
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

        message = "moved to val",
        replaceWith = ReplaceWith(expression = "type"),
        level = DeprecationLevel.ERROR,
      )
      fun type(): MediaType = type
    
      @JvmName("-deprecated_boundary")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "boundary"),
        level = DeprecationLevel.ERROR,
      )
      fun boundary(): String = boundary
    
      @JvmName("-deprecated_size")
      @Deprecated(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/Route.kt

        message = "moved to val",
        replaceWith = ReplaceWith(expression = "address"),
        level = DeprecationLevel.ERROR,
      )
      fun address(): Address = address
    
      @JvmName("-deprecated_proxy")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "proxy"),
        level = DeprecationLevel.ERROR,
      )
      fun proxy(): Proxy = proxy
    
      @JvmName("-deprecated_socketAddress")
      @Deprecated(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.3K bytes
    - Viewed (0)
Back to top