Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for caracter (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

        val c = this[i]
        // The WHATWG Host parsing rules accepts some character codes which are invalid by
        // definition for OkHttp's host header checks (and the WHATWG Host syntax definition). Here
        // we rule out characters that would cause problems in host headers.
        if (c <= '\u001f' || c >= '\u007f') {
          return true
        }
        // Check for the characters mentioned in the WHATWG Host parsing spec:
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt

     *
     * This implementation is optimized for readability over efficiency.
     *
     * This implements non-transitional processing by preserving deviation characters.
     *
     * This implementation's STD3 rules are configured to `UseSTD3ASCIIRules=false`. This is
     * permissive and permits the `_` character.
     *
     * [mapping table]: https://www.unicode.org/reports/tr46/#IDNA_Mapping_Table
     * [mapping step]: https://www.unicode.org/reports/tr46/#ProcessingStepMap
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // Host names are special:
        //
        //  * Several characters are forbidden and must throw exceptions if used.
        //  * They don't use percent escaping at all.
        //  * They use punycode for internationalization.
        //  * URI is much more strict than HttpUrl or URL on what's accepted.
        //
        // HttpUrl is quite lenient with what characters it accepts. In particular, characters like '{'
    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)
  4. okhttp/src/test/java/okhttp3/HttpUrlJvmTest.kt

      }
    
      /**
       * Strip unexpected characters when converting to URI (which is more strict).
       * https://github.com/square/okhttp/issues/5667
       */
      @Test
      fun hostToUriStripsCharacters() {
        val httpUrl = "http://example\".com/".toHttpUrl()
        assertThat(httpUrl.toUri().toString()).isEqualTo("http://example.com/")
      }
    
      /** Confirm that URI retains other characters. https://github.com/square/okhttp/issues/5236 */
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.9K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt

      @Test fun mixedCasePunycode() {
        testDecodeOnly(
          unicode = "ليهمابتكلموشعربي؟",
          punycode = "Xn--EgBpDaJ6Bu4bXfGeHfVwXn",
        )
      }
    
      /**
       * It's invalid to have a label longer than 63 characters. If that's requested, the encoder may
       * overflow and return null.
       */
      @Test fun overflowEncodingOversizedLabel() {
        val a1000 = "a".repeat(1000)
        val a1000MaxCodePoint = a1000 + "\udbff\udfff"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly(
          Challenge("Digest", mapOf()),
        )
      }
    
      @Disabled("TODO(jwilson): reject parameters that use invalid characters")
      @Test
      fun doubleQuoteInToken() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate", "Digest,,,, Basic ,,,realm=my\"realm")
            .build()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. docs/changelogs/changelog_4x.md

        consistent with the length of the response body.
    
     *  Fix: Don't crash when converting a `HttpUrl` instance with an unresolvable hostname to a URI.
        The new behavior strips invalid characters like `"` and `{` from the hostname before converting.
    
     *  Fix: Undo a performance regression introduced in OkHttp 4.0 caused by differences in behavior
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(URLConnection.getDefaultRequestProperty("X-setDefaultRequestProperty")).isNull()
      }
    
      /**
       * Reads `count` characters from the stream. If the stream is exhausted before `count`
       * characters can be read, the remaining characters are returned and the stream is closed.
       */
      private fun readAscii(
        inputStream: InputStream,
        count: Int,
      ): String {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 131.7K bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/internal/IsProbablyUtf8.kt

          if (prefix.exhausted()) {
            break
          }
          val codePoint = prefix.readUtf8CodePoint()
          if (Character.isISOControl(codePoint) && !Character.isWhitespace(codePoint)) {
            return false
          }
        }
        return true
      } catch (_: EOFException) {
        return false // Truncated UTF-8 sequence.
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 07 16:05:34 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/okhttp3/internal/idn/rfc3454.C.2.2.txt

       0080-009F; [CONTROL CHARACTERS]
       06DD; ARABIC END OF AYAH
       070F; SYRIAC ABBREVIATION MARK
       180E; MONGOLIAN VOWEL SEPARATOR
       200C; ZERO WIDTH NON-JOINER
       200D; ZERO WIDTH JOINER
       2028; LINE SEPARATOR
       2029; PARAGRAPH SEPARATOR
       2060; WORD JOINER
       2061; FUNCTION APPLICATION
       2062; INVISIBLE TIMES
       2063; INVISIBLE SEPARATOR
       206A-206F; [CONTROL CHARACTERS]
       FEFF; ZERO WIDTH NO-BREAK SPACE
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 498 bytes
    - Viewed (0)
Back to top