- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for sections (0.17 sec)
-
okhttp/src/main/kotlin/okhttp3/internal/idn/IdnaMappingTable.kt
sink: BufferedSink, ): Boolean { val sectionsIndex = findSectionsIndex(codePoint) val rangesPosition = sections.read14BitInt(sectionsIndex + 2) val rangesLimit = when { sectionsIndex + 4 < sections.length -> sections.read14BitInt(sectionsIndex + 6) else -> ranges.length / 4 } val rangesIndex = findRangesOffset(codePoint, rangesPosition, rangesLimit)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Apr 02 11:39:58 GMT 2024 - 9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt
for (dataString in listOf<String>(compactTable.sections, compactTable.ranges)) { for (codePoint in dataString.codePoints()) { assertThat(codePoint and 0x7f).isEqualTo(codePoint) } } // Confirm the sections are increasing. val rangesIndices = mutableListOf<Int>() val rangesOffsets = mutableListOf<Int>() for (i in 0 until compactTable.sections.length step 4) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
internal fun inet6AddressToAscii(address: ByteArray): String { // Go through the address looking for the longest run of 0s. Each group is 2-bytes. // A run must be longer than one group (section 4.2.2). // If there are multiple equal runs, the first one must be used (section 4.2.3). var longestRunOffset = -1 var longestRunLength = 0 run { var i = 0 while (i < address.size) { val currentRunOffset = i
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-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt
type: String?, data: String, ) fun onRetryChange(timeMs: Long) } /** * Process the next event. This will result in a single call to [Callback.onEvent] *unless* the * data section was empty. Any number of calls to [Callback.onRetryChange] may occur while * processing an event. * * @return false when EOF is reached */ @Throws(IOException::class) fun processNextEvent(): Boolean {
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) -
okhttp/src/test/java/okhttp3/internal/idn/PunycodeTest.kt
*/ package okhttp3.internal.idn import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertNull class PunycodeTest { /** https://datatracker.ietf.org/doc/html/rfc3492#section-7.1 */ @Test fun rfc3492Samples() { // (A) Arabic (Egyptian) testEncodeDecode( unicode = "ليهمابتكلموشعربي؟", punycode = "xn--egbpdaj6bu4bxfgehfvwxn", ) // (B) Chinese (simplified)
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-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
} return SimpleIdnaMappingTable(result) } internal data class Mapping( val sourceCodePoint0: Int, val sourceCodePoint1: Int, val type: Int, val mappedTo: ByteString, ) { val section: Int get() = sourceCodePoint0 and 0x1fff80 val rangeStart: Int get() = sourceCodePoint0 and 0x7f val hasSingleSourceCodePoint: Boolean get() = sourceCodePoint0 == sourceCodePoint1
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) -
docs/changelogs/changelog_4x.md
[okio_3_6_0]: https://square.github.io/okio/changelog/#version-360 [public_suffix]: https://publicsuffix.org/ [rfc_2045]: https://tools.ietf.org/html/rfc2045 [rfc_7231_647]: https://tools.ietf.org/html/rfc7231#section-6.4.7 [rfc_7692]: https://tools.ietf.org/html/rfc7692 [semver]: https://semver.org/
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) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
assertThat(base.resolve("ht-tp//b/")).isEqualTo(parse("http://a/ht-tp//b/")) assertThat(base.resolve("ht.tp//b/")).isEqualTo(parse("http://a/ht.tp//b/")) } /** * https://tools.ietf.org/html/rfc3986#section-5.4.1 */ @Test fun rfc3886NormalExamples() { val url = parse("http://a/b/c/d;p?q") // No 'g:' scheme in HttpUrl. assertThat(url.resolve("g:h")).isNull()
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/src/main/kotlin/okhttp3/internal/connection/InetAddressOrder.kt
* - Async DNS split by IP class * - Stateful handling of connectivity results * - The prioritisation of addresses * * https://datatracker.ietf.org/doc/html/rfc8305#section-4 */ fun reorderForHappyEyeballs(addresses: List<InetAddress>): List<InetAddress> { if (addresses.size < 2) { return addresses } val (ipv6, ipv4) = addresses.partition { it is Inet6Address }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 1.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/ErrorCode.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.internal.http2 /** http://tools.ietf.org/html/draft-ietf-httpbis-http2-17#section-7 */ enum class ErrorCode constructor(val httpCode: Int) { /** Not an error! */ NO_ERROR(0), PROTOCOL_ERROR(1), INTERNAL_ERROR(2), FLOW_CONTROL_ERROR(3), SETTINGS_TIMEOUT(4),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 1.2K bytes - Viewed (0)