- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 244 for chunked (0.04 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http1/Http1ExchangeCodec.kt
) : ExchangeCodec { private var state = STATE_IDLE private val headersReader = HeadersReader(socket.source) private val Response.isChunked: Boolean get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true) private val Request.isChunked: Boolean get() = "chunked".equals(header("Transfer-Encoding"), ignoreCase = true) /** * Trailers received when the response body became exhausted. *
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 17.5K bytes - Viewed (7) -
cmd/handler-utils.go
// to a custom value for example: "aws-chunked,gzip". metadata[strings.ToLower(xhttp.ContentEncoding)] = contentEncoding } else { // Trimmed content encoding is empty when the header // value is set to "aws-chunked" only. // Make sure to delete the content-encoding parameter // for a streaming signature which is set to value // for example: "aws-chunked"
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 16.3K bytes - Viewed (1) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
contentLength = header.substring(15).trim().toLong() } if (lowercaseHeader.startsWith("transfer-encoding:") && lowercaseHeader.substring(18).trim() == "chunked" ) { chunked = true } } val peek = dispatcher.peek() for (response in peek.informationalResponses) { writeHttpResponse(socket, response) }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 40.3K bytes - Viewed (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.assertLogMatch(Regex("""Transfer-encoding: chunked""")) .assertLogEqual("<-- END HTTP (streaming)") .assertNoMoreLogs() applicationLogs .assertLogEqual("--> GET $url") .assertLogEqual("--> END GET") .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)""")) .assertLogEqual("Content-Type: text/event-stream") .assertLogMatch(Regex("""Transfer-encoding: chunked"""))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 37.5K bytes - Viewed (0) -
CHANGELOG.md
body. * Breaking: `RecordedRequest.chunkSizes` is now nullable. Null is used when the request does not use chunked encoding. This is different from an empty list - that indicates the request is chunked but has no data. * Breaking: Replace `SocketPolicy` with a new type, `SocketEffect`. It splits triggers (request
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Jul 07 19:32:33 UTC 2025 - 31.6K bytes - Viewed (1) -
cmd/endpoint-ellipses.go
} ep.argPatterns = argPatterns return ep, nil } // GetAllSets - parses all ellipses input arguments, expands them into // corresponding list of endpoints chunked evenly in accordance with a // specific set size. // For example: {1...64} is divided into 4 sets each of size 16. // This applies to even distributed setup syntax as well.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 14.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
.addHeader("Content-Encoding", "chunked") .build(), ) server.enqueue(MockResponse(body = "abc")) val headRequest = Request .Builder() .url(server.url("/")) .head() .build() executeSynchronously(headRequest) .assertCode(200) .assertHeader("Content-Encoding", "chunked") .assertBody("")
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
} @Test fun nonHexadecimalChunkSize() { server.enqueue( MockResponse() .setBody("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n") .clearHeaders() .addHeader("Transfer-encoding: chunked"), ) val connection = server.url("/").toUrl().openConnection() val inputStream = connection.getInputStream() try { inputStream.read() fail<Any>()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
testResponseCaching(TransferKind.FIXED_LENGTH) } @Test fun responseCachingAndInputStreamSkipWithChunkedEncoding() { testResponseCaching(TransferKind.CHUNKED) } @Test fun responseCachingAndInputStreamSkipWithNoLengthHeaders() { testResponseCaching(TransferKind.END_OF_STREAM) } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 113.6K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
fun nonHexadecimalChunkSize() { server.enqueue( MockResponse .Builder() .body("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n") .clearHeaders() .addHeader("Transfer-encoding: chunked") .build(), ) val connection = server.url("/").toUrl().openConnection() try { connection.getInputStream().read() fail<Unit>() } catch (expected: IOException) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0)