- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for characters (5.61 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt
} /** * Returns the next index in this at or after [startIndex] that is a character from * [characters]. Returns the input length if none of the requested characters can be found. */ private fun String.indexOfElement( characters: String, startIndex: Int = 0, ): Int { for (i in startIndex until length) { if (this[i] in characters) { return i } } return length
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 13:41:01 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt
* units away from 0 and 0.499 towards 0. The smallest unit this returns is "µs"; the largest unit * it returns is "s". For values in [-499..499] this returns " 0 µs". * * The returned string attempts to be column-aligned to 6 characters. For negative and large values * the returned string may be longer. */ fun formatDuration(ns: Long): String { val s = when { ns <= -999_500_000 -> "${(ns - 500_000_000) / 1_000_000_000} s "
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) -
okhttp/src/main/kotlin/okhttp3/internal/tls/OkHostnameVerifier.kt
verifyHostname(hostname, it) } } /** * This is like [toLowerCase] except that it does nothing if this contains any non-ASCII * characters. We want to avoid lower casing special chars like U+212A (Kelvin symbol) because * they can return ASCII characters that match real hostnames. */ private fun String.asciiToLowercase(): String { return when {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 7.7K bytes - Viewed (0)