- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for byteStream (0.34 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ResponseBody.kt
* [bytes] or [string]. Or stream the response with either [source], [byteStream], or [charStream]. */ abstract class ResponseBody : Closeable { /** Multiple calls to [charStream] must return the same instance. */ private var reader: Reader? = null abstract fun contentType(): MediaType? /** * Returns the number of bytes in that will returned by [bytes], or [byteStream], or -1 if * unknown. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue May 27 14:51:25 UTC 2025 - 11.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
val response1 = call1.execute() val in1 = response1.body.byteStream() assertThat(readAscii(in1, 5)).isEqualTo("ABCDE") in1.close() call1.cancel() val call2 = client.newCall(newRequest("/")) val response2 = call2.execute() val in2 = response2.body.byteStream() assertThat(readAscii(in2, 5)).isEqualTo("LMNOP") in2.close() call2.cancel()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
Request .Builder() .url(server.url("/")) .build(), ) val response = call.execute() interruptLater(500) val responseBody = response.body.byteStream() val buffer = ByteArray(1024) assertFailsWith<IOException> { while (responseBody.read(buffer) != -1) { } } responseBody.close() } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 30 11:30:11 UTC 2025 - 6.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
override fun contentLength(): Long = TODO() override fun source(): BufferedSource = TODO() override fun close() = TODO() } val byteStream = responseBody.byteStream() val source = responseBody.source() val bytes = responseBody.bytes() val charStream = responseBody.charStream() val string = responseBody.string() responseBody.close()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 46.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
fun emptyResponse(protocol: Protocol) { setUp(protocol) server.enqueue(MockResponse()) val call = client.newCall(Request(server.url("/foo"))) val response = call.execute() assertThat(response.body.byteStream().read()).isEqualTo(-1) response.body.close() } @ParameterizedTest @ArgumentsSource(ProtocolParamProvider::class) fun noDefaultContentLengthOnStreamingPost(protocol: Protocol) {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 73.4K bytes - Viewed (0) -
okhttp/api/jvm/okhttp.api
public static final field Companion Lokhttp3/ResponseBody$Companion; public static final field EMPTY Lokhttp3/ResponseBody; public fun <init> ()V public final fun byteStream ()Ljava/io/InputStream; public final fun byteString ()Lokio/ByteString; public final fun bytes ()[B public final fun charStream ()Ljava/io/Reader; public fun close ()V public abstract fun contentLength ()J
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
okhttp/api/android/okhttp.api
public static final field Companion Lokhttp3/ResponseBody$Companion; public static final field EMPTY Lokhttp3/ResponseBody; public fun <init> ()V public final fun byteStream ()Ljava/io/InputStream; public final fun byteString ()Lokio/ByteString; public final fun bytes ()[B public final fun charStream ()Ljava/io/Reader; public fun close ()V public abstract fun contentLength ()J
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
guava/src/com/google/common/io/ByteStreams.java
@Override public String toString() { return "ByteStreams.nullOutputStream()"; } }; /** * Returns an {@link OutputStream} that simply discards written bytes. * * <p><b>Java 11+ users:</b> use {@link OutputStream#nullOutputStream()} instead. Note that the * {@link ByteStreams} method returns a singleton stream whose {@code close} method has no effect,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
e: IOException, ): Unit = throw AssertionError() override fun onResponse( call: Call, response: Response, ) { val bytes = response.body.byteStream() assertThat(bytes.read()).isEqualTo('a'.code) assertThat(bytes.read()).isEqualTo('b'.code) assertThat(bytes.read()).isEqualTo('c'.code)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0) -
CHANGELOG/CHANGELOG-1.31.md
- github.com/googleapis/enterprise-certificate-proxy: [v0.2.3](https://github.com/googleapis/enterprise-certificate-proxy/tree/v0.2.3) - google.golang.org/genproto/googleapis/bytestream: e85fd2c - google.golang.org/grpc/cmd/protoc-gen-go-grpc: v1.1.0 - gopkg.in/gcfg.v1: v1.2.3 - gopkg.in/warnings.v0: v0.1.2 - rsc.io/quote/v3: v3.1.0 - rsc.io/sampler: v1.3.0
Registered: Fri Sep 05 09:05:11 UTC 2025 - Last Modified: Wed Aug 13 19:49:57 UTC 2025 - 429.6K bytes - Viewed (0)