- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 126 for Reaber (0.06 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
) { for (pushPromise in promises) { val pushedHeaders = mutableListOf<Header>() pushedHeaders.add(Header(Header.TARGET_AUTHORITY, url(pushPromise.path).host)) pushedHeaders.add(Header(Header.TARGET_METHOD, pushPromise.method)) pushedHeaders.add(Header(Header.TARGET_PATH, pushPromise.path)) val pushPromiseHeaders = pushPromise.headers
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0) -
docs/changelogs/changelog_4x.md
The upcoming Android Studio runs in a JVM but has classes from Android and that confused OkHttp! * Fix: Include the header `Accept: text/event-stream` for SSE calls. This header is not added if the request already contains an `Accept` header. * Fix: Don't crash with a `NullPointerException` if a server sends a close while we're sending a ping. OkHttp had a race condition bug.
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Wed Apr 17 13:25:31 UTC 2024 - 25.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ResponseBodyJvmTest.kt
override fun close() { closed.set(true) super.close() } }.buffer() } } val reader = body.charStream() assertThat(reader.read()).isEqualTo('h'.code) reader.close() assertThat(closed.get()).isTrue() } @Test fun sourceSeesBom() { val body = "efbbbf68656c6c6f".decodeHex().toResponseBody()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 13K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/RequestTest.kt
builder.header("", "Value") } assertFailsWith<IllegalArgumentException> { builder.addHeader("", "Value") } } @Test fun headerAllowsTabOnlyInValues() { val builder = Request.Builder() builder.header("key", "sample\tvalue") assertFailsWith<IllegalArgumentException> { builder.header("sample\tkey", "value") } }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
ProtocolException::class.java, "Expected 'Sec-WebSocket-Accept' header value 'ujmZX4KXZqjwy6vi1aQFH5p4Ygk=' but was 'magic'", ) webSocket.cancel() } @Test @Throws(IOException::class) fun clientIncludesForbiddenHeader() { newWebSocket( Request.Builder() .url(webServer.url("/")) .header("Sec-WebSocket-Extensions", "permessage-deflate") .build(), )
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt
return millis.toInt() } internal fun List<Header>.toHeaders(): Headers { val builder = Headers.Builder() for ((name, value) in this) { builder.addLenient(name.utf8(), value.utf8()) } return builder.build() } internal fun Headers.toHeaderList(): List<Header> = (0 until size).map { Header(name(it), value(it)) }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon May 13 13:42:37 UTC 2024 - 10.7K bytes - Viewed (0) -
mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockResponse.kt
} return apply { status = "HTTP/1.1 $code $reason" } } fun clearHeaders() = apply { headersBuilder = Headers.Builder() } fun addHeader(header: String) = apply { headersBuilder.add(header) } fun addHeader( name: String, value: Any, ) = apply { headersBuilder.add(name, value.toString()) } fun addHeaderLenient(
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookiesTest.kt
.build() get(redirectSourceUrl) val request = redirectSource.takeRequest() assertThat(request.headers["Cookie"]).isEqualTo("c=cookie") for (header in redirectTarget.takeRequest().headers.names()) { if (header.startsWith("Cookie")) { fail(header) } } } @Test fun testCookiesSentIgnoresCase() { client = client.newBuilder() .cookieJar(
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 13K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt
frameHeader( streamId = 0, length = 0, type = TYPE_SETTINGS, flags = FLAG_ACK, ) sink.flush() } } /** * HTTP/2 only. Send a push promise header block. * * A push promise contains all the headers that pertain to a server-initiated request, and a * `promisedStreamId` to which response frames will be delivered. Push promise frames are sent as
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 20 17:03:43 UTC 2024 - 11.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/FormBody.kt
* do double-duty to make sure the counting and content are consistent, particularly when it comes * to awkward operations like measuring the encoded length of header strings, or the * length-in-digits of an encoded integer. */ private fun writeOrCountBytes( sink: BufferedSink?, countBytes: Boolean, ): Long { var byteCount = 0L
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Tue Jan 09 12:33:05 UTC 2024 - 4.3K bytes - Viewed (0)