- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for flipped (0.18 sec)
-
okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt
) } else if (gzippedLength != null) { logger.log("--> END ${request.method} (${buffer.size}-byte, $gzippedLength-gzipped-byte body)") } else { logger.log(buffer.readString(charset)) logger.log("--> END ${request.method} (${requestBody.contentLength()}-byte body)") } } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 11.2K bytes - Viewed (1) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
getResponse(newRequest("/")).use { response -> readAscii(response.body.byteStream(), Int.MAX_VALUE) } } } /** * This test checks whether connections are gzipped by default. This behavior in not required by * the API, so a failure of this test does not imply a bug in the implementation. */ @Test fun gzipEncodingEnabledByDefault() { server.enqueue(
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) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
if (!skipCommasAndWhitespace() && !exhausted()) return // Expected ',' or EOF. } result.add(Challenge(schemeName, parameters)) } } /** Returns true if any commas were skipped. */ private fun Buffer.skipCommasAndWhitespace(): Boolean { var commaFound = false loop@ while (!exhausted()) { when (this[0]) { ','.code.toByte() -> { // Consume ','. readByte()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.assertLogEqual("Accept-Encoding: gzip") .assertLogMatch(Regex("""User-Agent: okhttp/.+""")) .assertLogEqual("") .assertLogEqual("--> END POST (12-byte, 32-gzipped-byte body)") .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)""")) .assertLogEqual("Content-Type: text/plain; charset=utf-8") .assertLogMatch(Regex("""Content-Length: \d+""")) .assertLogEqual("")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 06 09:14:38 GMT 2024 - 37.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallTest.kt
.build() executeSynchronously("/").assertBody("abcabcabc") } @Test fun rangeHeaderPreventsAutomaticGzip() { val gzippedBody = gzip("abcabcabc") // Enqueue a gzipped response. Our request isn't expecting it, but that's okay. server.enqueue( MockResponse.Builder() .code(HttpURLConnection.HTTP_PARTIAL) .body(gzippedBody)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 142.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt
// TODO: checkState open or half-closed (local) or raise STREAM_CLOSED val inFinished = flags and FLAG_END_STREAM != 0 val gzipped = flags and FLAG_COMPRESSED != 0 if (gzipped) { throw IOException("PROTOCOL_ERROR: FLAG_COMPRESSED without SETTINGS_COMPRESS_DATA") } val padding = if (flags and FLAG_PADDED != 0) source.readByte() and 0xff else 0
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 19.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/InterceptorTest.kt
server.hostName + ":" + server.port, ) assertThat(networkRequest.header("Accept-Encoding")).isNotNull() // The network response also has everything, including the raw gzipped content. val networkResponse = chain.proceed(networkRequest) assertThat(networkResponse.header("Content-Encoding")).isEqualTo("gzip") networkResponse } client =
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sun Jan 14 10:20:09 GMT 2024 - 27.8K bytes - Viewed (0) -
okhttp-brotli/src/test/java/okhttp3/brotli/BrotliInterceptorTest.kt
header("Content-Encoding", "gzip") } val uncompressed = uncompress(response) val responseString = uncompressed.body.string() assertThat(responseString).contains("\"gzipped\": true,") assertThat(responseString).contains("\"Accept-Encoding\": \"br,gzip\"") } @Test fun testNoUncompress() { val response = response("https://httpbin.org/brotli", "XXXX".encodeUtf8())
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http2/PushObserver.kt
fun onHeaders( streamId: Int, responseHeaders: List<Header>, last: Boolean, ): Boolean /** * A chunk of response data corresponding to a pushed request. This data must either be read or * skipped. * * @param streamId server-initiated stream ID: an even number. * @param source location of data corresponding with this stream ID. * @param byteCount number of bytes to read or skip from the source.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.6K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/JsseDebugLogging.kt
return } when (message.type) { JsseDebugMessage.Type.Setup, JsseDebugMessage.Type.Encrypted, JsseDebugMessage.Type.Plaintext -> { println(message.message + " (skipped output)") } else -> println(message) } } fun enableJsseDebugLogging(debugHandler: (JsseDebugMessage) -> Unit = this::quietDebug): Closeable { System.setProperty("javax.net.debug", "")
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0)