- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for LEADING (0.22 sec)
-
okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt
} @Throws(IOException::class) private fun completeEvent( id: String?, type: String?, data: Buffer, ) { if (data.size != 0L) { lastId = id data.skip(1L) // Leading newline. callback.onEvent(id, type, data.readUtf8()) } } companion object { val options = Options.of( // 0 "\r\n".encodeUtf8(), // 1
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/main/kotlin/okhttp3/internal/-HostnamesCommon.kt
var value = 0 val groupOffset = i while (i < limit) { val c = input[i] if (c < '0' || c > '9') break if (value == 0 && groupOffset != i) return false // Reject unnecessary leading '0's. value = value * 10 + c.code - '0'.code if (value > 255) return false // Value out of range. i++ } val groupLength = i - groupOffset
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-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt
assertThat(header.constructed).isFalse() assertThat(header.length).isEqualTo(201) } assertThat(derReader.hasNext()).isFalse() } @Test fun `decode length encoded with leading zero byte`() { val buffer = Buffer() .writeByte(0b00000010) .writeByte(0b10000010) .writeByte(0b00000000) .writeByte(0b01111111) val derReader = DerReader(buffer)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 31.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
if (exceptionMessage != null) { assertThat(iae).hasMessage(exceptionMessage) } } } @Test fun parseTrimsAsciiWhitespace() { val expected = parse("http://host/") // Leading. assertThat(parse("http://host/\u000c\n\t \r")).isEqualTo(expected) // Trailing. assertThat(parse("\r\n\u000c \thttp://host/")).isEqualTo(expected) // Both.
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) -
docs/changelogs/changelog_4x.md
_2020-04-06_ **This release fixes a severe bug where OkHttp incorrectly detected and recovered from unhealthy connections.** Stale or canceled connections were incorrectly attempted when they shouldn't have been, leading to rare cases of infinite retries. Please upgrade to this release! * Fix: don't return stale DNS entries in `DnsOverHttps`. We were caching DNS results indefinitely
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/internal/http/StatusLineTest.kt
assertThat(statusLine.protocol).isEqualTo(Protocol.HTTP_1_1) assertThat(statusLine.code).isEqualTo(code) } /** * This is not defined in the protocol but some servers won't add the leading empty space when the * message is empty. http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1 */ @Test fun emptyMessageAndNoLeadingSpace() { val version = 1 val code = 503
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) -
docs/changelogs/changelog_1x.md
_2014-03-17_ * Fix bug where deleting a file that was absent from the `HttpResponseCache` caused an IOException. * Fix bug in HTTP/2 where our HPACK decoder wasn't emitting entries in certain eviction scenarios, leading to dropped response headers. ## Version 1.5.1 _2014-03-11_ * Fix 1.5.0 regression where connections should not have been recycled. * Fix 1.5.0 regression where transparent Gzip was broken by attempting to
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Feb 06 02:19:09 GMT 2022 - 6.4K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Headers.kt
* simplifies use of single-valued fields whose values routinely contain commas, such as cookies or * dates. * * This class trims whitespace from values. It never returns values with leading or trailing * whitespace. * * Instances of this class are immutable. Use [Builder] to create instances. */ @Suppress("NAME_SHADOWING") class Headers internal constructor(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.5K bytes - Viewed (0) -
okhttp/src/test/resources/web-platform-test-toascii.json
"input": "aa--", "output": "aa--" }, { "input": "a†--", "output": "xn--a---kp0a" }, { "input": "ab--c", "output": "ab--c" }, { "comment": "Label with leading hyphen", "input": "-x", "output": "-x" }, { "input": "-†", "output": "xn----xhn" }, { "input": "-x.xn--zca", "output": "-x.xn--zca" }, { "input": "-x.ß",
Json - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 5.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
assertThat(headers.getInstant("Test-Instant")).isEqualTo(expected) } @Test fun addParsing() { val headers = Headers.Builder() .add("foo: bar") .add(" foo: baz") // Name leading whitespace is trimmed. .add("foo : bak") // Name trailing whitespace is trimmed. .add("\tkey\t:\tvalue\t") // '\t' also counts as whitespace .add("ping: pong ") // Value whitespace is trimmed.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.6K bytes - Viewed (0)