Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 169 for Invalid (0.29 sec)

  1. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        }
      }
    
      @Test
      fun testRequestInvalid() {
        val call = client.newCall(Request("https://google.invalid/".toHttpUrl()))
    
        try {
          call.execute()
          fail("Request can't succeed")
        } catch (ioe: IOException) {
          assertThat(ioe).hasMessage("No results for google.invalid")
        }
      }
    
      @Test
      @Ignore("No results on CI for localhost")
      fun testDnsRequest() {
    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 (0)
  2. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun unparseableTopPrivateDomain() {
        assertInvalid("http://a../", "Invalid URL host: \"a..\"")
        assertInvalid("http://..a/", "Invalid URL host: \"..a\"")
        assertInvalid("http://a..b/", "Invalid URL host: \"a..b\"")
        assertInvalid("http://.a/", "Invalid URL host: \".a\"")
        assertInvalid("http://../", "Invalid URL host: \"..\"")
      }
    
      @Test
      fun hostnameTelephone() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 67.9K bytes
    - Viewed (0)
  3. docs/en/docs/tutorial/handling-errors.md

    These handlers are in charge of returning the default JSON responses when you `raise` an `HTTPException` and when the request has invalid data.
    
    You can override these exception handlers with your own.
    
    ### Override request validation exceptions
    
    When a request contains invalid data, **FastAPI** internally raises a `RequestValidationError`.
    
    And it also includes a default exception handler for it.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        assertThat(client.processNextFrame()).isFalse()
        client.listener.assertClosing(1000, "Bye!")
      }
    
      @Test
      fun protocolErrorBeforeCloseSendsFailure() {
        server.sink.write("0a00".decodeHex()).emit() // Invalid non-final ping frame.
        client.processNextFrame() // Detects error, send close, close connection.
        taskFaker.runTasks()
        client.webSocket!!.finishReader()
        assertThat(client.closed).isTrue()
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2.kt

      const val FLAG_COMPRESSED = 0x20 // Used for data.
    
      /** Lookup table for valid frame types. */
      private val FRAME_NAMES =
        arrayOf(
          "DATA", "HEADERS", "PRIORITY", "RST_STREAM", "SETTINGS", "PUSH_PROMISE", "PING", "GOAWAY",
          "WINDOW_UPDATE", "CONTINUATION",
        )
    
      /**
       * Lookup table for valid flags for DATA, HEADERS, CONTINUATION. Invalid combinations are
       * represented in binary.
       */
    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 (0)
  6. okhttp/src/main/kotlin/okhttp3/Interceptor.kt

     *       return Response.Builder()
     *           .request(chain.request())
     *           .protocol(Protocol.HTTP_1_1)
     *           .code(400)
     *           .message("client config invalid")
     *           .body("client config invalid".toResponseBody(null))
     *           .build()
     *     }
     *
     *     return chain.proceed(chain.request())
     *   }
     * ```
     */
    fun interface Interceptor {
      @Throws(IOException::class)
    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)
  7. okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

          throw IllegalArgumentException("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.")
        }
    
        val dns = AsyncDns.toDns(asyncDns)
    
        assertFailure {
          dns.lookup("google.invalid")
        }.apply {
          hasMessage("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.")
          isInstanceOf(UnknownHostException::class)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 22 20:07:09 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  8. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    # Basic IDN support, UTF-8 and UTF-16 input should be converted to IDN
    http://\u4f60\u597d\u4f60\u597d  s:http p:/ h:xn--6qqa088eba
    
    # Invalid escaped characters should fail and the percents should be
    # escaped. https://www.w3.org/Bugs/Public/show_bug.cgi?id=24191
    http://%zz%66%a.com
    
    # If we get an invalid character that has been escaped.
    http://%25
    http://hello%00
    
    # Escaped numbers should be treated like IP addresses if they are.
    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)
  9. docs/extensions/s3zip/README.md

    - ListObjectsV2 API calls must be used to list zip file content.
    - Range requests for GetObject/HeadObject for individual files from zip is not supported.
    - Names inside ZIP files are kept unmodified, but some may lead to invalid paths. See [Object key naming guidelines](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html) on safe names.
    - This API behavior is limited for following **read** operations on files inside a zip archive:
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 10 16:28:27 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

          }
    
          this.pattern =
            pattern.toCanonicalHost() ?: throw IllegalArgumentException("Invalid pattern: $pattern")
    
          when {
            pin.startsWith("sha1/") -> {
              this.hashAlgorithm = "sha1"
              this.hash = pin.substring("sha1/".length).decodeBase64() ?: throw IllegalArgumentException("Invalid pin hash: $pin")
            }
            pin.startsWith("sha256/") -> {
              this.hashAlgorithm = "sha256"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
Back to top